pub trait AsDiagnostic {
    // Required method
    fn as_diagnostic(&self, map: &CodeMap) -> Diagnostic<FileId>;
}

Required Methods§

source

fn as_diagnostic(&self, map: &CodeMap) -> Diagnostic<FileId>

Implementations on Foreign Types§

source§

impl AsDiagnostic for Box<dyn Error + Send + Sync>

source§

fn as_diagnostic(&self, _map: &CodeMap) -> Diagnostic<FileId>

Implementors§

source§

impl<E> AsDiagnostic for Spanned<E, BytePos>
where E: AsDiagnostic,

source§

impl<E, H> AsDiagnostic for Help<E, H>
where E: AsDiagnostic, H: Display,