Macro impl_leaf_error
Source macro_rules! impl_leaf_error {
($ty:ty) => { ... };
}
Expand description
Implements leaf Errors.
Emitted code is compatible with #[no_std] after Rust v1.81.
§Examples
ⓘ#[derive(Debug)]
struct LeafError;
impl_more::impl_display!(LeafError: "leaf");
impl_more::impl_leaf_error!(LeafError);
assert!(core::error::Error::source(&LeafError).is_none());