Enum rustdoc_highlight::Class
[−]
[src]
pub enum Class {
None,
Comment,
DocComment,
Attribute,
KeyWord,
RefKeyWord,
Self_,
Op,
Macro,
MacroNonTerminal,
String,
Number,
Bool,
Ident,
Lifetime,
PreludeTy,
PreludeVal,
QuestionMark,
}How a span of text is classified. Mostly corresponds to token kinds.
Variants
NoneCommentDocCommentAttributeKeyWordRefKeyWordSelf_OpMacroMacroNonTerminalStringNumberBoolIdentLifetimePreludeTyPreludeValQuestionMark
Methods
impl Class[src]
pub fn rustdoc_class(self) -> &'static str[src]
Returns the css class expected by rustdoc for each Class.
Trait Implementations
impl Clone for Class[src]
fn clone(&self) -> Class[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for Class[src]
impl Debug for Class[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more