use hydroflow::hydroflow_syntax; fn main() { struct Shape { area: f64, } let mut df = hydroflow_syntax! { my_demux = source_iter([ Shape { area: 10.0 }, Shape { area: 9.0 }, ]) -> demux_enum::(); my_demux[Rectangle] -> for_each(std::mem::drop); my_demux[Circle] -> for_each(std::mem::drop); my_demux[Square] -> for_each(std::mem::drop); my_demux[Ellipse] -> for_each(std::mem::drop); }; df.run_available(); }