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,
    QuestionMark,
}

How a span of text is classified. Mostly corresponds to token kinds.

Variants

Methods

impl Class
[src]

Returns the css class expected by rustdoc for each Class.

Trait Implementations

impl Clone for Class
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Class
[src]

impl Debug for Class
[src]

Formats the value using the given formatter. Read more

impl Eq for Class
[src]

impl PartialEq for Class
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Class

impl Sync for Class