Function tuple::tuple

source ·
pub fn tuple<T, I>(iter: I) -> Option<T>
where T: TupleElements, I: Iterator<Item = T::Element>,
Expand description
assert_eq!(tuple("hello world".split(' ')), Some(("hello", "world")));