Trait SingleVariant

Source
pub trait SingleVariant: DemuxEnumBase {
    type Output;

    // Required method
    fn single_variant(self) -> Self::Output;
}
Available on crate feature dfir_macro only.
Expand description

Special case of DemuxEnum for when there is only one variant.

Required Associated Types§

Source

type Output

Output tuple type.

Required Methods§

Source

fn single_variant(self) -> Self::Output

Convert self into it’s single variant tuple Output.

Implementors§