macro_rules! extended_enum_default {
( $name:ident, $ty:ty, $var_def:ident => $val_def:expr,
$( $var:ident => $val:expr ),+ $(,)* ) => { ... };
}
Expand description
Creates an enum with various traits. The first key-value pair is the default used if any conversion would fail.