Lines Matching refs:Some
42 (Some(a), None) => Some(EitherOrBoth::Left(a)), in next()
43 (None, Some(b)) => Some(EitherOrBoth::Right(b)), in next()
44 (Some(a), Some(b)) => Some(EitherOrBoth::Both(a, b)), in next()
56 (Some(x), Some(y)) => Some(cmp::max(x,y)), in size_hint()
72 (Some(a), Some(b)) => Some(EitherOrBoth::Both(a, b)), in next_back()
74 (Some(a), None) => Some(EitherOrBoth::Left(a)), in next_back()
75 (None, Some(b)) => Some(EitherOrBoth::Right(b)), in next_back()
114 assert_eq!(vi.zip_longest(v2.iter()).size_hint(), (10, Some(10))); in test_iterator_size_hint()
124 assert_eq!(it.next(), Some(EitherOrBoth::Both(1, 1))); in test_double_ended()
125 assert_eq!(it.next(), Some(EitherOrBoth::Both(2, 2))); in test_double_ended()
126 assert_eq!(it.next_back(), Some(EitherOrBoth::Left(6))); in test_double_ended()
127 assert_eq!(it.next_back(), Some(EitherOrBoth::Left(5))); in test_double_ended()
128 assert_eq!(it.next_back(), Some(EitherOrBoth::Both(4, 7))); in test_double_ended()
129 assert_eq!(it.next(), Some(EitherOrBoth::Both(3, 3))); in test_double_ended()