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§
Required Methods§
Sourcefn single_variant(self) -> Self::Output
fn single_variant(self) -> Self::Output
Convert self into it’s single variant tuple Output.