Lines Matching refs:clone
65 fn clone(&self) -> NodePtr<K, V> { in clone() method
161 let mut temp = self.clone(); in min_node()
170 let mut temp = self.clone(); in max_node()
242 unsafe { (*self.0).parent.clone() } in parent()
250 unsafe { (*self.0).left.clone() } in left()
258 unsafe { (*self.0).right.clone() } in right()
274 let mut node = NodePtr::new((*self.0).key.clone(), (*self.0).value.clone()); in deep_clone()
356 fn clone(&self) -> RBTree<K, V> { in clone() method
482 fn clone(&self) -> Keys<'a, K, V> { in clone() method
484 inner: self.inner.clone(), in clone()
491 f.debug_list().entries(self.clone()).finish() in fmt()
527 fn clone(&self) -> Values<'a, K, V> { in clone() method
529 inner: self.inner.clone(), in clone()
536 f.debug_list().entries(self.clone()).finish() in fmt()
575 fn clone(&self) -> ValuesMut<'a, K, V> { in clone() method
577 inner: self.inner.clone(), in clone()
584 f.debug_list().entries(self.clone()).finish() in fmt()
690 fn clone(&self) -> Iter<'a, K, V> { in clone() method
766 fn clone(&self) -> IterMut<'a, K, V> { in clone() method
882 temp.left().set_parent(node.clone()); in left_rotate()
887 self.root = temp.clone(); in left_rotate()
889 node.parent().set_left(temp.clone()); in left_rotate()
891 node.parent().set_right(temp.clone()); in left_rotate()
894 temp.set_left(node.clone()); in left_rotate()
895 node.set_parent(temp.clone()); in left_rotate()
917 temp.right().set_parent(node.clone()); in right_rotate()
922 self.root = temp.clone(); in right_rotate()
924 node.parent().set_right(temp.clone()); in right_rotate()
926 node.parent().set_left(temp.clone()); in right_rotate()
929 temp.set_right(node.clone()); in right_rotate()
930 node.set_parent(temp.clone()); in right_rotate()
1455 let m2 = m.clone(); in test_clone()