Trait dfir_rs::util::demux_enum::SingleVariant

source ·
pub trait SingleVariant: DemuxEnumBase {
    type Output;

    // Required method
    fn single_variant(self) -> Self::Output;
}
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§