pub trait FlatError {
// Required method
fn error_variant(&self) -> &'static str;
}Expand description
Trait for errors that can report their variant name.
Required Methods§
Sourcefn error_variant(&self) -> &'static str
fn error_variant(&self) -> &'static str
Returns the name of the error variant as a static string.