Home
last modified time | relevance | path

Searched refs:peek_nth (Results 1 – 5 of 5) sorted by relevance

/external/rust/crates/itertools/tests/
Dtest_std.rs12 use crate::it::peek_nth;
543 let iter = peek_nth(nums.iter().map(|&x| x)); in test_peek_nth()
546 let mut iter = peek_nth(nums.iter().map(|&x| x)); in test_peek_nth()
548 assert_eq!(iter.peek_nth(0), Some(&1)); in test_peek_nth()
549 assert_eq!(iter.peek_nth(0), Some(&1)); in test_peek_nth()
552 assert_eq!(iter.peek_nth(0), Some(&2)); in test_peek_nth()
553 assert_eq!(iter.peek_nth(1), Some(&3)); in test_peek_nth()
556 assert_eq!(iter.peek_nth(0), Some(&3)); in test_peek_nth()
557 assert_eq!(iter.peek_nth(1), Some(&4)); in test_peek_nth()
558 assert_eq!(iter.peek_nth(2), Some(&5)); in test_peek_nth()
[all …]
Dquick.rs23 peek_nth,
493 let mut it = peek_nth(a);
496 it.peek_nth(n as usize);
/external/rust/crates/itertools/src/
Dpeek_nth.rs23 pub fn peek_nth<I>(iterable: I) -> PeekNth<I::IntoIter> in peek_nth() function
39 self.peek_nth(0) in peek()
65 pub fn peek_nth(&mut self, n: usize) -> Option<&I::Item> { in peek_nth() function
Dfree.rs30 pub use crate::peek_nth::peek_nth;
Dlib.rs132 pub use crate::peek_nth::PeekNth;
214 mod peek_nth; module