Macro extension

Source
macro_rules! extension {
    (
        $(
            $(#[$meta: meta])*
            pub extension $name: ident $(<$($generic: ident),*>)?: $ty: ty {
                $($tokens: tt)*
            }
        )*
    ) => { ... };
}
Available on crate feature extension only.
Expand description

Generate a sealed trait with a given name and content.