Home
last modified time | relevance | path

Searched refs:next_back (Results 1 – 25 of 73) sorted by relevance

123

/external/rust/crates/itertools/tests/
Dzip.rs37 assert_eq!(it.next_back(), Some(Left(6))); in test_double_ended_zip_longest()
38 assert_eq!(it.next_back(), Some(Left(5))); in test_double_ended_zip_longest()
39 assert_eq!(it.next_back(), Some(Both(4, 7))); in test_double_ended_zip_longest()
51 assert_eq!(it.next_back(), Some((4, 7))); in test_double_ended_zip()
52 assert_eq!(it.next_back(), Some((3, 3))); in test_double_ended_zip()
53 assert_eq!(it.next_back(), Some((2, 2))); in test_double_ended_zip()
54 assert_eq!(it.next_back(), Some((1, 1))); in test_double_ended_zip()
55 assert_eq!(it.next_back(), None); in test_double_ended_zip()
/external/rust/crates/syn/tests/
Dtest_iterators.rs28 assert_eq!(p.pairs().next_back().map(Pair::into_value), Some(&4)); in pairs()
30 p.pairs_mut().next_back().map(Pair::into_value), in pairs()
33 assert_eq!(p.into_pairs().next_back().map(Pair::into_value), Some(4)); in pairs()
46 assert_eq!(p.iter().next_back(), Some(&4)); in iter()
47 assert_eq!(p.iter_mut().next_back(), Some(&mut 4)); in iter()
48 assert_eq!(p.into_iter().next_back(), Some(4)); in iter()
/external/rust/crates/itertools/src/
Dzip_longest.rs60 fn next_back(&mut self) -> Option<Self::Item> { in next_back() function
62 Equal => match (self.a.next_back(), self.b.next_back()) { in next_back()
69 Greater => self.a.next_back().map(EitherOrBoth::Left), in next_back()
70 Less => self.b.next_back().map(EitherOrBoth::Right), in next_back()
Dpad_tail.rs67 fn next_back(&mut self) -> Option<Self::Item> { in next_back() function
69 self.iter.next_back() in next_back()
72 self.iter.next_back() in next_back()
Dunique_impl.rs84 fn next_back(&mut self) -> Option<Self::Item> { in next_back() function
85 while let Some(v) = self.iter.next_back() { in next_back()
127 fn next_back(&mut self) -> Option<Self::Item> { in next_back() function
128 while let Some(v) = self.iter.iter.next_back() { in next_back()
Dziptuple.rs109 fn next_back(&mut self) -> Option<Self::Item> {
115 for _ in 0..$B.len() - size { $B.next_back(); }
119 match ($($B.next_back(),)*) {
Drciter_impl.rs80 fn next_back(&mut self) -> Option<Self::Item> { in next_back() function
81 self.rciter.borrow_mut().next_back() in next_back()
/external/rust/crates/anyhow/tests/
Dtest_chain.rs16 assert!(chain.next_back().is_none()); in test_iter()
28 assert!(chain.next_back().is_none()); in test_rev()
38 assert_eq!("0", chain.next_back().unwrap().to_string()); in test_len()
42 assert_eq!("1", chain.next_back().unwrap().to_string()); in test_len()
/external/rust/crates/managed/src/
Dmap.rs131 fn next_back(&mut self) -> Option<Self::Item> { in next_back() method
145 RangeInner::Owned(ref mut range) => range.next_back(), in next_back()
582 assert_eq!(range.next_back(), None); in test_range_full_unbounded()
586 assert_eq!(range.next_back(), Some((&"d", &4))); in test_range_full_unbounded()
587 assert_eq!(range.next_back(), Some((&"c", &3))); in test_range_full_unbounded()
589 assert_eq!(range.next_back(), None); in test_range_full_unbounded()
597 assert_eq!(range.next_back(), None); in test_range_full_unbounded()
602 assert_eq!(range.next_back(), None); in test_range_full_unbounded()
610 assert_eq!(range.next_back(), None); in test_range_full_unbounded()
617 assert_eq!(range.next_back(), None); in test_range_full_unbounded()
[all …]
/external/rust/crates/hashlink/tests/
Dlinked_hash_set.rs466 assert_eq!(iter.next_back(), Some(&4)); in double_ended_iter()
467 assert_eq!(iter.next_back(), Some(&3)); in double_ended_iter()
468 assert_eq!(iter.next_back(), None); in double_ended_iter()
470 assert_eq!(iter.next_back(), None); in double_ended_iter()
476 assert_eq!(iter.next_back(), Some(4)); in double_ended_iter()
477 assert_eq!(iter.next_back(), Some(3)); in double_ended_iter()
478 assert_eq!(iter.next_back(), None); in double_ended_iter()
480 assert_eq!(iter.next_back(), None); in double_ended_iter()
491 assert_eq!(iter.next_back(), Some(4)); in double_ended_iter()
492 assert_eq!(iter.next_back(), Some(3)); in double_ended_iter()
[all …]
Dlinked_hash_map.rs233 assert_eq!((&"c", &30), mixed_iter.next_back().unwrap()); in test_iter()
236 assert_eq!(None, mixed_iter.next_back()); in test_iter()
325 assert_eq!(Some(("b", 20)), iter.next_back()); in test_consuming_iter()
375 assert_eq!(iter.next_back().map(|p| p.0), Some("c")); in test_into_iter_drop()
407 assert_eq!(iter.next_back().map(|p| p.0), Some("c")); in test_drain()
408 assert_eq!(iter.next_back().map(|p| p.0), Some("b")); in test_drain()
410 assert!(iter.next_back().is_none()); in test_drain()
426 assert_eq!(iter.next_back().map(|p| p.0), Some("c")); in test_drain()
428 assert!(iter.next_back().is_none()); in test_drain()
/external/rust/crates/syn/src/
Dpunctuated.rs96 self.iter().next_back() in last()
101 self.iter_mut().next_back() in last_mut()
554 fn next_back(&mut self) -> Option<Self::Item> { in next_back() method
558 .or_else(|| self.inner.next_back().map(|(t, p)| Pair::Punctuated(t, p))) in next_back()
604 fn next_back(&mut self) -> Option<Self::Item> { in next_back() method
608 .or_else(|| self.inner.next_back().map(|(t, p)| Pair::Punctuated(t, p))) in next_back()
644 fn next_back(&mut self) -> Option<Self::Item> { in next_back() method
648 .or_else(|| self.inner.next_back().map(|(t, p)| Pair::Punctuated(t, p))) in next_back()
693 fn next_back(&mut self) -> Option<Self::Item> { in next_back() method
694 self.inner.next_back() in next_back()
[all …]
/external/rust/crates/anyhow/src/
Dchain.rs57 fn next_back(&mut self) -> Option<Self::Item> { in next_back() method
66 let last = rest.next_back(); in next_back()
70 Buffered { rest } => rest.next_back(), in next_back()
/external/rust/crates/regex/src/
Dre_set.rs345 fn next_back(&mut self) -> Option<usize> {
347 match self.0.next_back() {
387 fn next_back(&mut self) -> Option<usize> {
389 match self.0.next_back() {
/external/rust/crates/clap/src/args/
Darg_matches.rs816 fn next_back(&mut self) -> Option<&'a str> { in next_back() method
817 self.iter.next_back() in next_back()
875 fn next_back(&mut self) -> Option<&'a OsStr> { in next_back() method
876 self.iter.next_back() in next_back()
935 fn next_back(&mut self) -> Option<usize> { in next_back() method
936 self.iter.next_back() in next_back()
/external/rust/crates/rayon/src/iter/
Dinterleave.rs312 fn next_back(&mut self) -> Option<I::Item> { in next_back() function
315 self.i.next_back() in next_back()
317 self.j.next_back() in next_back()
320 self.j.next_back() in next_back()
322 self.i.next_back() in next_back()
Dintersperse.rs251 fn next_back(&mut self) -> Option<Self::Item> { in next_back() function
255 } else if let next_back @ Some(_) = self.base.next_back() { in next_back()
258 next_back in next_back()
/external/rust/crates/memchr/src/
Diter.rs66 fn next_back(&mut self) -> Option<Self::Item> { in next_back() method
110 fn next_back(&mut self) -> Option<Self::Item> { in next_back() method
167 fn next_back(&mut self) -> Option<Self::Item> { in next_back() method
/external/rust/crates/lru-cache/src/
Dlib.rs381 fn next_back(&mut self) -> Option<(K, V)> { in next_back() method
382 self.0.next_back() in next_back()
408 fn next_back(&mut self) -> Option<(&'a K, &'a V)> { self.0.next_back() } in next_back() method
428 fn next_back(&mut self) -> Option<(&'a K, &'a mut V)> { self.0.next_back() } in next_back() method
/external/rust/crates/unicode-segmentation/src/
Dword.rs40 fn next_back(&mut self) -> Option<&'a str> { self.inner.next_back() } in next_back() method
105 fn next_back(&mut self) -> Option<(usize, &'a str)> { in next_back() method
106 self.iter.next_back().map(|s| (s.as_ptr() as usize - self.start_offset, s)) in next_back()
386 fn next_back(&mut self) -> Option<&'a str> { in next_back() method
397 idx -= self.string.chars().next_back().unwrap().len_utf8(); in next_back()
655 let nch = self.string[..idx].chars().next_back().unwrap(); in get_prev_cat()
/external/rust/crates/fallible-iterator/src/
Dlib.rs989 fn next_back(&mut self) -> Result<Option<I::Item>, I::Error> { in next_back() method
990 (**self).next_back() in next_back()
1018 fn next_back(&mut self) -> Result<Option<I::Item>, I::Error> { in next_back() method
1019 (**self).next_back() in next_back()
1026 fn next_back(&mut self) -> Result<Option<Self::Item>, Self::Error>; in next_back() method
1048 while let Some(v) = self.next_back()? { in try_rfold()
1237 fn next_back(&mut self) -> Result<Option<B>, I::Error> { in next_back() function
1238 match self.it.next_back() { in next_back()
1371 fn next_back(&mut self) -> Result<Option<T::Item>, T::Error> { in next_back() function
1373 ChainState::Both => match self.back.next_back()? { in next_back()
[all …]
/external/rust/crates/clap/src/
Dmap.rs84 fn next_back(&mut self) -> Option<Self::Item> { in next_back() method
85 self.inner.next_back().map(|(k, v)| (*k, v)) in next_back()
/external/rust/crates/quiche/src/
Dranges.rs120 self.flatten().next_back() in last()
145 .next_back() in prev_to()
212 fn next_back(&mut self) -> Option<Range<u64>> { in next_back() method
213 let (&start, &end) = self.inner.next_back()?; in next_back()
249 fn next_back(&mut self) -> Option<u64> { in next_back() method
251 let (&start, &end) = self.inner.next_back()?; in next_back()
/external/rust/crates/tinyvec/src/
Darrayvec_drain.rs59 fn next_back(&mut self) -> Option<Self::Item> { in next_back() method
60 self.iter.next_back().map(take) in next_back()
/external/rust/crates/itertools/src/adaptors/
Dmap.rs53 fn next_back(&mut self) -> Option<Self::Item> { in next_back() function
54 self.iter.next_back().map(|i| self.f.call(i)) in next_back()

123