Lines Matching refs:iter

17 use core::iter::{FromIterator, IntoIterator};
372 f.debug_map().entries(self.iter()).finish() in fmt()
423 self.iter() in eq()
448 fn from_iter<T: IntoIterator<Item = (K, V)>>(iter: T) -> RBTree<K, V> { in from_iter()
450 tree.extend(iter); in from_iter()
457 fn extend<T: IntoIterator<Item = (K, V)>>(&mut self, iter: T) { in extend()
458 let iter = iter.into_iter(); in extend() localVariable
459 for (k, v) in iter { in extend()
823 let iter = if self.root.is_null() { in into_iter() localVariable
837 iter in into_iter()
1379 Keys { inner: self.iter() } in keys()
1385 Values { inner: self.iter() } in values()
1398 pub fn iter(&self) -> Iter<K, V> { in iter() method
1471 assert_eq!(m.iter().next(), None); in test_empty_iter()
1606 for (k, v) in m.iter() { in test_iterate()
1696 let map: RBTree<_, _> = xs.iter().cloned().collect(); in test_from_iter()
1707 let map: RBTree<_, _> = xs.iter().cloned().collect(); in test_size_hint()
1709 let mut iter = map.iter(); in test_size_hint() localVariable
1711 for _ in iter.by_ref().take(3) {} in test_size_hint()
1713 assert_eq!(iter.size_hint(), (3, Some(3))); in test_size_hint()
1720 let map: RBTree<_, _> = xs.iter().cloned().collect(); in test_iter_len()
1722 let mut iter = map.iter(); in test_iter_len() localVariable
1724 for _ in iter.by_ref().take(3) {} in test_iter_len()
1726 assert_eq!(iter.count(), 3); in test_iter_len()
1733 let mut map: RBTree<_, _> = xs.iter().cloned().collect(); in test_mut_size_hint()
1735 let mut iter = map.iter_mut(); in test_mut_size_hint() localVariable
1737 for _ in iter.by_ref().take(3) {} in test_mut_size_hint()
1739 assert_eq!(iter.size_hint(), (3, Some(3))); in test_mut_size_hint()
1746 let mut map: RBTree<_, _> = xs.iter().cloned().collect(); in test_iter_mut_len()
1748 let mut iter = map.iter_mut(); in test_iter_mut_len() localVariable
1750 for _ in iter.by_ref().take(3) {} in test_iter_mut_len()
1752 assert_eq!(iter.count(), 3); in test_iter_mut_len()