coercible_errors/
example_generated.rs

1//! This module contains the traits and types defined by `coercible_errors!`.
2
3/// A dummy error type to demonstrate `coercible_errors`.
4#[derive(Debug)]
5pub struct MyError {}
6impl std::fmt::Display for MyError {
7    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::result::Result<(), std::fmt::Error> {
8        write!(f, "{:?}", self)
9    }
10}
11impl std::error::Error for MyError {}
12
13coercible_errors!(MyError);