[][src]Enum libslide::diagnostics::DiagnosticKind

pub enum DiagnosticKind {
    Error,
    Warning,
    Note,
    Help,
}

The kind of a slide diagnostic.

Variants

Error

An error diagnostic. Generally, this diagnostic should be emitted for unrecoverable errors. In other cases, a warning or a note may be more applicable.

Warning

A warning diagnostic describes something that is not a strict error, but may not match canonical style, usage patterns, or otherwise may be error-prone.

Note

A note diagnostic is a generic annotation with no specific connotation like error. It can be particularly useful as an associated diagnostic, for example in expanding on a primary error.

Help

A help diagnostic should instruct the user how their code can be changed to work correctly with slide.

Trait Implementations

impl PartialEq<DiagnosticKind> for DiagnosticKind[src]

impl StructuralPartialEq for DiagnosticKind[src]

Auto Trait Implementations

impl RefUnwindSafe for DiagnosticKind

impl Send for DiagnosticKind

impl Sync for DiagnosticKind

impl Unpin for DiagnosticKind

impl UnwindSafe for DiagnosticKind

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, 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.