Searched refs:RBTreeNode (Results 1 – 1 of 1) sorted by relevance
/linux/rust/kernel/ |
H A D | rbtree.rs | 27 /// use kernel::{alloc::flags, rbtree::{RBTree, RBTreeNode, RBTreeNodeReservation}}; 101 /// use kernel::{alloc::flags, rbtree::{RBTree, RBTreeNode}, sync::SpinLock}; 105 /// let node = RBTreeNode::new(10, 100, flags::GFP_KERNEL)?; 291 ) -> Result<Option<RBTreeNode<K, V>>> { in try_create_and_insert() 292 Ok(self.insert(RBTreeNode::new(key, value, flags)?)) in try_create_and_insert() 301 pub fn insert(&mut self, node: RBTreeNode<K, V>) -> Option<RBTreeNode<K, V>> { in insert() 408 pub fn remove_node(&mut self, key: &K) -> Option<RBTreeNode<K, V>> { in remove_node() 765 pub fn remove_current(self) -> (Option<Self>, RBTreeNode<K, V>) { in remove_current() 773 let node = RBTreeNode { nod in remove_current() 1078 pub struct RBTreeNode<K, V> { global() struct 1082 impl<K, V> RBTreeNode<K, V> { global() implementation 1099 unsafe impl<K: Send, V: Send> Send for RBTreeNode<K, V> {} global() implementation 1103 unsafe impl<K: Sync, V: Sync> Sync for RBTreeNode<K, V> {} global() implementation 1105 impl<K, V> RBTreeNode<K, V> { global() implementation [all...] |