Lines Matching refs:a
472 pub struct Keys<'a, K: Ord + Debug + 'a, V: Debug + 'a> {
473 inner: Iter<'a, K, V>,
476 impl<'a, K: Ord + Debug, V: Debug> Clone for Keys<'a, K, V> {
477 fn clone(&self) -> Keys<'a, K, V> { in clone() argument
490 impl<'a, K: Ord + Debug, V: Debug> Iterator for Keys<'a, K, V> {
491 type Item = &'a K;
494 fn next(&mut self) -> Option<&'a K> { in next()
517 pub struct Values<'a, K: Ord + Debug, V: Debug> {
518 inner: Iter<'a, K, V>,
521 impl<'a, K: Ord + Debug, V: Debug> Clone for Values<'a, K, V> {
522 fn clone(&self) -> Values<'a, K, V> { in clone() argument
535 impl<'a, K: Ord + Debug, V: Debug> Iterator for Values<'a, K, V> {
536 type Item = &'a V;
539 fn next(&mut self) -> Option<&'a V> { in next()
565 pub struct ValuesMut<'a, K: Ord + Debug + 'a, V: Debug + 'a> {
566 inner: IterMut<'a, K, V>,
569 impl<'a, K: Ord + Debug, V: Debug> Clone for ValuesMut<'a, K, V> {
570 fn clone(&self) -> ValuesMut<'a, K, V> { in clone() argument
583 impl<'a, K: Ord + Debug, V: Debug> Iterator for ValuesMut<'a, K, V> {
584 type Item = &'a mut V;
587 fn next(&mut self) -> Option<&'a mut V> { in next()
677 pub struct Iter<'a, K: Ord + Debug + 'a, V: Debug + 'a> {
681 _marker: marker::PhantomData<&'a ()>,
684 impl<'a, K: Ord + Debug + 'a, V: Debug + 'a> Clone for Iter<'a, K, V> {
685 fn clone(&self) -> Iter<'a, K, V> { in clone() argument
695 impl<'a, K: Ord + Debug + 'a, V: Debug + 'a> Iterator for Iter<'a, K, V> {
696 type Item = (&'a K, &'a V);
698 fn next(&mut self) -> Option<(&'a K, &'a V)> { in next()
718 impl<'a, K: Ord + Debug + 'a, V: Debug + 'a> DoubleEndedIterator for Iter<'a, K, V> {
720 fn next_back(&mut self) -> Option<(&'a K, &'a V)> { in next_back()
749 pub struct IterMut<'a, K: Ord + Debug + 'a, V: Debug + 'a> {
753 _marker: marker::PhantomData<&'a ()>,
756 impl<'a, K: Ord + Debug + 'a, V: Debug + 'a> Clone for IterMut<'a, K, V> {
757 fn clone(&self) -> IterMut<'a, K, V> { in clone() argument
767 impl<'a, K: Ord + Debug + 'a, V: Debug + 'a> Iterator for IterMut<'a, K, V> {
768 type Item = (&'a K, &'a mut V);
770 fn next(&mut self) -> Option<(&'a K, &'a mut V)> { in next()
790 impl<'a, K: Ord + Debug + 'a, V: Debug + 'a> DoubleEndedIterator for IterMut<'a, K, V> {
792 fn next_back(&mut self) -> Option<(&'a K, &'a mut V)> { in next_back()
1804 let mut a = RBTree::new(); in test_extend_iter() localVariable
1805 a.insert(1, "one"); in test_extend_iter()
1810 a.extend(b); in test_extend_iter()
1812 assert_eq!(a.len(), 3); in test_extend_iter()
1813 assert_eq!(a[&1], "one"); in test_extend_iter()
1814 assert_eq!(a[&2], "two"); in test_extend_iter()
1815 assert_eq!(a[&3], "three"); in test_extend_iter()
1821 let mut a = RBTree::new(); in test_rev_iter() localVariable
1822 a.insert(1, 1); in test_rev_iter()
1823 a.insert(2, 2); in test_rev_iter()
1824 a.insert(3, 3); in test_rev_iter()
1826 assert_eq!(a.len(), 3); in test_rev_iter()
1828 for e in a.iter().rev() { in test_rev_iter()