pub enum StyleClass {
    Error,
    Warning,
    Info,
    Note,
    Help,
    LineNo,
    Emphasis,
    None,
}
Expand description

StyleClass is a collection of named variants of style classes that DisplayListFormatter uses.

Variants§

§

Error

Message indicating an error.

§

Warning

Message indicating a warning.

§

Info

Message indicating an information.

§

Note

Message indicating a note.

§

Help

Message indicating a help.

§

LineNo

Style for line numbers.

§

Emphasis

Parts of the text that are to be emphasised.

§

None

Parts of the text that are regular. Usually a no-op.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.