Struct rustc_errors::SubDiagnostic[][src]

pub struct SubDiagnostic {
    pub level: Level,
    pub message: Vec<(String, Style)>,
    pub span: MultiSpan,
    pub render_span: Option<MultiSpan>,
}

For example a note attached to an error.

Fields

Methods

impl SubDiagnostic
[src]

Trait Implementations

impl Clone for SubDiagnostic
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SubDiagnostic
[src]

Formats the value using the given formatter. Read more

impl PartialEq for SubDiagnostic
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for SubDiagnostic
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Encodable for SubDiagnostic
[src]

impl Decodable for SubDiagnostic
[src]

Auto Trait Implementations

impl !Send for SubDiagnostic

impl !Sync for SubDiagnostic