[−][src]Trait rustc_typeck::structured_errors::StructuredDiagnostic

pub trait StructuredDiagnostic<'tcx> {
    pub fn session(&self) -> &Session;
pub fn code(&self) -> DiagnosticId;
pub fn common(&self) -> DiagnosticBuilder<'tcx>; pub fn diagnostic(&self) -> DiagnosticBuilder<'tcx> { ... }
pub fn regular(
        &self,
        err: DiagnosticBuilder<'tcx>
    ) -> DiagnosticBuilder<'tcx> { ... }
pub fn extended(
        &self,
        err: DiagnosticBuilder<'tcx>
    ) -> DiagnosticBuilder<'tcx> { ... } }

Required methods

pub fn session(&self) -> &Session[src]

pub fn code(&self) -> DiagnosticId[src]

pub fn common(&self) -> DiagnosticBuilder<'tcx>[src]

Loading content...

Provided methods

pub fn diagnostic(&self) -> DiagnosticBuilder<'tcx>[src]

pub fn regular(&self, err: DiagnosticBuilder<'tcx>) -> DiagnosticBuilder<'tcx>[src]

pub fn extended(&self, err: DiagnosticBuilder<'tcx>) -> DiagnosticBuilder<'tcx>[src]

Loading content...

Implementors

impl<'tcx> StructuredDiagnostic<'tcx> for SizedUnsizedCastError<'tcx>[src]

impl<'tcx> StructuredDiagnostic<'tcx> for VariadicError<'tcx>[src]

Loading content...