[−][src]Struct rustc_errors::json::DiagnosticCode

pub(in json) struct DiagnosticCode {
    code: String,
    explanation: Option<&'static str>,
}

Fields

code: String

The code itself.

explanation: Option<&'static str>

An explanation for the code.

Implementations

impl DiagnosticCode[src]

pub(in json) fn map_opt_string(
    s: Option<DiagnosticId>,
    je: &JsonEmitter
) -> Option<DiagnosticCode>
[src]

Trait Implementations

impl<__E: Encoder> Encodable<__E> for DiagnosticCode[src]

Auto Trait Implementations

impl RefUnwindSafe for DiagnosticCode

impl Send for DiagnosticCode

impl Sync for DiagnosticCode

impl Unpin for DiagnosticCode

impl UnwindSafe for DiagnosticCode

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.