Trait ErrorKind

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

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

Required Methods§

Source

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

Builds the report for this error.

Implementors§