Trait hydroflow::util::demux_enum::DemuxEnum
source · pub trait DemuxEnum<Outputs>: DemuxEnumBase {
// Required method
fn demux_enum(self, outputs: &mut Outputs);
}
Expand description
Trait for use with the demux_enum
operator.
This trait is meant to be derived: #[derive(DemuxEnum)]
.
The derive will implement this such that Outputs
can be any tuple where each item is a
Pusherator
that corresponds to each of the variants of the tuple, in alphabetic order.
Required Methods§
sourcefn demux_enum(self, outputs: &mut Outputs)
fn demux_enum(self, outputs: &mut Outputs)
Pushes self into the corresponding output pusherator in outputs
.