macro_rules! extended_enum {
( $name:ident, $ty:ty, $( $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.
macro_rules! extended_enum {
( $name:ident, $ty:ty, $( $var:ident => $val:expr ),+ $(,)* ) => { ... };
}
Creates an enum with various traits. The first key-value pair is the default used if any conversion would fail.