pub trait ErrorHandler<T, E> {
// Required method
fn handle_err(self, loc: Location) -> Result<T, Error>;
}Expand description
Trait for logging and handling errors in a unified way
Required Methods§
Sourcefn handle_err(self, loc: Location) -> Result<T, Error>
fn handle_err(self, loc: Location) -> Result<T, Error>
Handle the error and log its location