macro_rules! define_error {
($Kind:ident { $(($variant:ident, $type:ty)),* $(,)? }) => { ... };
}
Expand description
All the error boilerplate (okay, with a couple exceptions in some cases) in one place.
macro_rules! define_error {
($Kind:ident { $(($variant:ident, $type:ty)),* $(,)? }) => { ... };
}
All the error boilerplate (okay, with a couple exceptions in some cases) in one place.