loose_enum

Macro loose_enum 

Source
macro_rules! loose_enum {
    (
        $(#[$outer:meta])*
        $vis:vis enum $name:ident: String {
            $($body:tt)*
        }
    ) => { ... };
    (
        $(#[$outer:meta])*
        $vis:vis enum $name:ident: $ty:ident {
            $($body:tt)*
        }
    ) => { ... };
    (
        $(#[$outer:meta])*
        $vis:vis enum $name:ident<$ty:ident $( : $first_bound:tt $(+ $other_bounds:tt)* )?>
        {
            $($body:tt)*
        }
    ) => { ... };
}
Expand description

Defines a repr enum that supports any value. If a value does not match any case, it will be parsed as Undefined.