macro_rules! extended_enum {
( $(#[$outer:meta])* $name:ident, $ty:ty, $( $(#[$inner:meta])* $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.