macro_rules! error_type {
(
$(#[$($derive_tts:tt)*])*
pub enum $err_name:ident {
$($var_name:ident($var_ty:ty) $var_body:tt),+
$(,)*
}
) => { ... };
(
$(#[$($derive_tts:tt)*])*
enum $err_name:ident {
$($var_name:ident($var_ty:ty) $var_body:tt),+
$(,)*
}
) => { ... };
}Expand description
Constructs a reasonably well-featured error type from a concise description.
For details, see the crate documentation.