Enum rustdoc::html::highlight::Class
[−]
[src]
pub enum Class { None, Comment, DocComment, Attribute, KeyWord, RefKeyWord, Self_, Op, Macro, MacroNonTerminal, String, Number, Bool, Ident, Lifetime, PreludeTy, PreludeVal, }
Unstable (
rustdoc
)How a span of text is classified. Mostly corresponds to token kinds.
Variants
None
Unstable (
rustdoc
)Comment
Unstable (
rustdoc
)DocComment
Unstable (
rustdoc
)Attribute
Unstable (
rustdoc
)KeyWord
Unstable (
rustdoc
)RefKeyWord
Unstable (
rustdoc
)Self_
Unstable (
rustdoc
)Op
Unstable (
rustdoc
)Macro
Unstable (
rustdoc
)MacroNonTerminal
Unstable (
rustdoc
)String
Unstable (
rustdoc
)Number
Unstable (
rustdoc
)Bool
Unstable (
rustdoc
)Ident
Unstable (
rustdoc
)Lifetime
Unstable (
rustdoc
)PreludeTy
Unstable (
rustdoc
)PreludeVal
Unstable (
rustdoc
)Methods
impl Class
[src]
fn rustdoc_class(self) -> &'static str
Unstable (
rustdoc
)Returns the css class expected by rustdoc for each Class
.
Trait Implementations
Derived Implementations
impl PartialEq for Class
[src]
fn eq(&self, __arg_0: &Class) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for Class
[src]
impl Debug for Class
[src]
impl Copy for Class
[src]
impl Clone for Class
[src]
fn clone(&self) -> Class
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more