fuel_asm

Macro enum_try_from

source
macro_rules! enum_try_from {
    (
        $(#[$meta:meta])* $vis:vis enum $name:ident {
            $($(#[$vmeta:meta])* $vname:ident $(= $val:expr)?,)*
        },
        $from:ident
    ) => { ... };
}
Expand description

Defines the enum with TryFrom trait implementation.