Searched refs:collect_tuple (Results 1 – 4 of 4) sorted by relevance
74 fn collect_tuple() { in collect_tuple() function77 assert_eq!(iter.collect_tuple(), Some((1, 2))); in collect_tuple()81 assert_eq!(iter.collect_tuple::<(_, _)>(), None); in collect_tuple()85 assert_eq!(iter.collect_tuple::<(_, _)>(), None); in collect_tuple()
671 a.collect_tuple::<(_, _, _)>().is_some() == (size == 3)
105 …- Add new method `.collect_tuple()` by @matklad; it makes a tuple out of the iterator's elements i…
1580 fn collect_tuple<T>(mut self) -> Option<T> in collect_tuple() method