[][src]Struct escargot::format::diagnostic::Diagnostic

pub struct Diagnostic<'a> {
    pub message: Cow<'a, str>,
    pub code: Option<DiagnosticCode<'a>>,
    pub level: DiagnosticLevel,
    pub spans: Vec<DiagnosticSpan<'a>>,
    pub children: Vec<Diagnostic<'a>>,
    pub rendered: Option<Cow<'a, str>>,
    // some fields omitted
}

A diagnostic message generated by rustc

Fields

message: Cow<'a, str>

The error message of this diagnostic.

code: Option<DiagnosticCode<'a>>

The associated error code for this diagnostic

level: DiagnosticLevel

The severity of the diagnostic.

spans: Vec<DiagnosticSpan<'a>>

A list of source code spans this diagnostic is associated with.

children: Vec<Diagnostic<'a>>

Associated diagnostic messages.

rendered: Option<Cow<'a, str>>

The message as rustc would render it

Trait Implementations

impl<'a> Clone for Diagnostic<'a>[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for Diagnostic<'a>[src]

impl<'a> Serialize for Diagnostic<'a>[src]

impl<'de: 'a, 'a> Deserialize<'de> for Diagnostic<'a>[src]

Auto Trait Implementations

impl<'a> Send for Diagnostic<'a>

impl<'a> Sync for Diagnostic<'a>

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]