Lines Matching refs:other

73     fn cmp(&self, other: &NodePtr<K, V>) -> Ordering {  in cmp()
74 unsafe { (*self.0).key.cmp(&(*other.0).key) } in cmp()
79 fn partial_cmp(&self, other: &NodePtr<K, V>) -> Option<Ordering> { in partial_cmp()
80 Some(self.cmp(other)) in partial_cmp()
85 fn eq(&self, other: &NodePtr<K, V>) -> bool { in eq()
86 self.0 == other.0 in eq()
422 fn eq(&self, other: &RBTree<K, V>) -> bool { in eq()
423 if self.len() != other.len() { in eq()
428 .all(|(key, value)| other.get(key).map_or(false, |v| *value == *v)) in eq()
1228 let mut other; in delete_fixup() localVariable
1231 other = parent.right(); in delete_fixup()
1233 if other.is_red_color() { in delete_fixup()
1234 other.set_black_color(); in delete_fixup()
1237 other = parent.right(); in delete_fixup()
1241 if other.left().is_black_color() && other.right().is_black_color() { in delete_fixup()
1242 other.set_red_color(); in delete_fixup()
1247 if other.right().is_black_color() { in delete_fixup()
1248 other.left().set_black_color(); in delete_fixup()
1249 other.set_red_color(); in delete_fixup()
1250 self.right_rotate(other); in delete_fixup()
1251 other = parent.right(); in delete_fixup()
1254 other.set_color(parent.get_color()); in delete_fixup()
1256 other.right().set_black_color(); in delete_fixup()
1262 other = parent.left(); in delete_fixup()
1264 if other.is_red_color() { in delete_fixup()
1265 other.set_black_color(); in delete_fixup()
1268 other = parent.left(); in delete_fixup()
1272 if other.left().is_black_color() && other.right().is_black_color() { in delete_fixup()
1273 other.set_red_color(); in delete_fixup()
1278 if other.left().is_black_color() { in delete_fixup()
1279 other.right().set_black_color(); in delete_fixup()
1280 other.set_red_color(); in delete_fixup()
1281 self.left_rotate(other); in delete_fixup()
1282 other = parent.left(); in delete_fixup()
1285 other.set_color(parent.get_color()); in delete_fixup()
1287 other.left().set_black_color(); in delete_fixup()