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.



impl SubDiagnostic

Trait Implementations

impl Clone for SubDiagnostic

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SubDiagnostic

Formats the value using the given formatter. Read more

impl PartialEq for SubDiagnostic

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

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

impl Decodable for SubDiagnostic

Auto Trait Implementations

impl !Send for SubDiagnostic

impl !Sync for SubDiagnostic