Searched refs:RBTreeNode (Results 1 – 1 of 1) sorted by relevance
/linux-6.12.1/rust/kernel/ |
D | rbtree.rs | 286 ) -> Result<Option<RBTreeNode<K, V>>> { in try_create_and_insert() 287 Ok(self.insert(RBTreeNode::new(key, value, flags)?)) in try_create_and_insert() 296 pub fn insert(&mut self, node: RBTreeNode<K, V>) -> Option<RBTreeNode<K, V>> { in insert() 403 pub fn remove_node(&mut self, key: &K) -> Option<RBTreeNode<K, V>> { in remove_node() 760 pub fn remove_current(self) -> (Option<Self>, RBTreeNode<K, V>) { in remove_current() 768 let node = RBTreeNode { node }; in remove_current() 793 pub fn remove_prev(&mut self) -> Option<RBTreeNode<K, V>> { in remove_prev() 798 pub fn remove_next(&mut self) -> Option<RBTreeNode<K, V>> { in remove_next() 802 fn remove_neighbor(&mut self, direction: Direction) -> Option<RBTreeNode<K, V>> { in remove_neighbor() 813 return Some(RBTreeNode { node }); in remove_neighbor() [all …]
|