pub struct Node<K> {
pub left: SplayNode<K>,
pub right: SplayNode<K>,
pub key: K,
}Fields§
§left: SplayNode<K>§right: SplayNode<K>§key: KImplementations§
Source§impl<K: Ord + Clone + Debug> Node<K>
impl<K: Ord + Clone + Debug> Node<K>
pub fn new(k: K) -> Rc<RefCell<Self>>
pub fn insert_left_most(&mut self, inserted: SplayNode<K>)
pub fn insert_right_most(&mut self, inserted: SplayNode<K>)
pub fn left_most_key(&self) -> K
pub fn right_most_key(&self) -> K
pub fn bstinsert(&mut self, inserted: &mut Rc<RefCell<Node<K>>>)
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for Node<K>where
K: Freeze,
impl<K> !RefUnwindSafe for Node<K>
impl<K> !Send for Node<K>
impl<K> !Sync for Node<K>
impl<K> Unpin for Node<K>where
K: Unpin,
impl<K> !UnwindSafe for Node<K>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more