[−][src]Macro join::join
Use to combine sync values. It produces tuple of values or single value in case of 1 branch.
extern crate join; use join::join; fn main() { let filtered: Vec<_> = join! { vec![1,2,3].into_iter() ?> |v| v % 2 == 0 =>[] }; assert_eq!(filtered, vec![2]); }