[][src]Enum annotate_snippets::display_list::DisplayAnnotationType

pub enum DisplayAnnotationType {
    None,
    Error,
    Warning,
    Info,
    Note,
    Help,
}

A type of the Annotation which may impact the sigils, style or text displayed.

There are several ways to uses this information when formatting the DisplayList:

  • An annotation may display the name of the type like error or info.
  • An underline for Error may be ^^^ while for Warning it coule be ---.
  • ColorStylesheet may use different colors for different annotations.

Variants

None
Error
Warning
Info
Note
Help

Trait Implementations

impl Clone for DisplayAnnotationType[src]

impl Debug for DisplayAnnotationType[src]

impl From<AnnotationType> for DisplayAnnotationType[src]

impl PartialEq<DisplayAnnotationType> for DisplayAnnotationType[src]

impl StructuralPartialEq for DisplayAnnotationType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.