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
NoneUnstable (
rustdoc)CommentUnstable (
rustdoc)DocCommentUnstable (
rustdoc)AttributeUnstable (
rustdoc)KeyWordUnstable (
rustdoc)RefKeyWordUnstable (
rustdoc)Self_Unstable (
rustdoc)OpUnstable (
rustdoc)MacroUnstable (
rustdoc)MacroNonTerminalUnstable (
rustdoc)StringUnstable (
rustdoc)NumberUnstable (
rustdoc)BoolUnstable (
rustdoc)IdentUnstable (
rustdoc)LifetimeUnstable (
rustdoc)PreludeTyUnstable (
rustdoc)PreludeValUnstable (
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) -> bool1.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