[][src]Macro reword::reword

macro_rules! reword {
    (
        $(#[$enum_meta:meta])*
        $pub:vis enum $enum:ident : $T:ty {
            $(#[$key_meta:meta])*
            struct $key:ident { $($(#[$name_meta:meta])* const $($name:ident)|+ = $val:expr;)+ }
            $(
                $(#[$key2_meta:meta])*
                struct $key2:ident { $($(#[$name2_meta:meta])* const $($name2:ident)|+ = $val2:expr;)+ }
            )*
        }
    ) => { ... };
}

The macro used to generate the structures used for constant value lookup.

See the crate level docs for more information.