ErrorKind

Trait ErrorKind 

Source
pub trait ErrorKind: Debug + Send {
    // Required method
    fn build_report<'a>(
        &self,
        src_id: &'a str,
        spans: &[Range<usize>],
    ) -> Report<'_, (&'a str, Range<usize>)>;
}
Expand description

Represents any kind of error that can occur during some operation.

Required Methods§

Source

fn build_report<'a>( &self, src_id: &'a str, spans: &[Range<usize>], ) -> Report<'_, (&'a str, Range<usize>)>

Builds the report for this error.

Implementors§