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