Macro rocket::mtls::x509::der_parser::rusticata_macros::newtype_enum

source ·
macro_rules! newtype_enum {
    (@collect_impl, $name:ident, $($key:ident = $val:expr),* $(,)*) => { ... };
    (@collect_disp, $name:ident, $f:ident, $m:expr, $($key:ident = $val:expr),* $(,)*) => { ... };
    (impl $name:ident {$($body:tt)*}) => { ... };
    (impl display $name:ident {$($body:tt)*}) => { ... };
    (impl debug $name:ident {$($body:tt)*}) => { ... };
}
Available on crate feature mtls only.
Expand description

Helper macro for newtypes: declare associated constants and implement Display trait