Lines Matching defs:next
7 //! `peeking_take_while` peeks at the next item in the iterator and runs the
54 //! assert_eq!(iter_xs.next(), Some(11));
57 //! assert_eq!(iter_ys.next(), Some(10));
84 /// `peeking_take_while` peeks at the next item in the iterator and runs the
143 fn next(&mut self) -> Option<Self::Item> {
198 assert!(it1.next().is_none());
199 assert_eq!(it1.next(), Some(0));
200 assert!(it1.next().is_none());
201 assert_eq!(it1.next(), Some(1));
215 assert!(it1.next().is_none());
216 assert!(it1.next().is_none());