use hydroflow::hydroflow_syntax; use hydroflow::util::demux_enum::DemuxEnum; fn main() { #[derive(DemuxEnum)] enum Shape { Square(f64), } let mut df = hydroflow_syntax! { my_demux = source_iter([ Shape::Square(9.0), ]) -> demux_enum::(); my_demux[Square] -> for_each(std::mem::drop); my_demux[Square] -> for_each(std::mem::drop); }; df.run_available(); }