tagged_enum

Macro tagged_enum 

Source
macro_rules! tagged_enum {
    (
        $vis:vis enum $enum:ident {
            bits = $bits:literal;
            $($name:ident($t:ty),)+
        }
    ) => { ... };
    (
        #[derive( $($d:ident),* )]
        $vis:vis enum $enum:ident {
            bits = $bits:literal;
            $($name:ident($t:ty),)+
        }
    ) => { ... };
}