Skip to main content

FlatError

Trait FlatError 

Source
pub trait FlatError {
    // Required method
    fn error_variant(&self) -> &'static str;
}
Expand description

Trait for errors that can report their variant name.

Required Methods§

Source

fn error_variant(&self) -> &'static str

Returns the name of the error variant as a static string.

Implementors§