Skip to main content

ap_error/
flat_error.rs

1//! FlatError trait for error variant identification.
2
3/// Trait for errors that can report their variant name.
4pub trait FlatError {
5    /// Returns the name of the error variant as a static string.
6    fn error_variant(&self) -> &'static str;
7}