pub struct Node<T> {
pub v: T,
/* private fields */
}Fields§
§v: TImplementations§
Source§impl<T> Node<T>
impl<T> Node<T>
pub fn new(v: T) -> Rc<RefCell<Node<T>>>
pub fn splay(node: &Rc<RefCell<Node<T>>>)
pub fn get(root: Rc<RefCell<Node<T>>>, i: usize) -> Rc<RefCell<Node<T>>>
pub fn merge( l: Option<Rc<RefCell<Node<T>>>>, r: Option<Rc<RefCell<Node<T>>>>, ) -> Option<Rc<RefCell<Node<T>>>>
pub fn split( root: Option<Rc<RefCell<Node<T>>>>, i: usize, ) -> (Option<Rc<RefCell<Node<T>>>>, Option<Rc<RefCell<Node<T>>>>)
pub fn insert( root: Option<Rc<RefCell<Node<T>>>>, i: usize, node: Option<Rc<RefCell<Node<T>>>>, ) -> Option<Rc<RefCell<Node<T>>>>
pub fn pop( root: Rc<RefCell<Node<T>>>, i: usize, ) -> (Rc<RefCell<Node<T>>>, Option<Rc<RefCell<Node<T>>>>)
pub fn binary_search<F>(f: F, root: Option<&'_ Rc<RefCell<Node<T>>>>) -> usize
Auto Trait Implementations§
impl<T> Freeze for Node<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Node<T>
impl<T> !Send for Node<T>
impl<T> !Sync for Node<T>
impl<T> Unpin for Node<T>where
T: Unpin,
impl<T> !UnwindSafe for Node<T>
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