Skip to main content

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§