[−][src]Struct rust_black_trees::unbalancetree::RegularNode
Fields
value: T
ptr: usize
parent: Option<usize>
lchild: Option<usize>
rchild: Option<usize>
Trait Implementations
impl<T: Debug> Debug for RegularNode<T>
[src]
impl<T: Debug + PartialOrd> Node<T> for RegularNode<T>
[src]
fn to_self_string(&self) -> String
[src]
fn to_self_string_display(&self) -> (String, usize)
[src]
fn is(&self, val: &T) -> bool
[src]
fn greater(&self, val: &T) -> bool
[src]
fn lesser(&self, val: &T) -> bool
[src]
fn get_value(&self) -> &T
[src]
fn get(&self, ptr: usize) -> &RegularNode<T>
[src]
In order to return a reference to a value of a vector contained within a refcell, a raw pointer is used. The unsafe code could be avoided by replacing each call to self.get(n) with &self.data.borrow()[n] and each call to self.get_mut(n) with &mut self.data.borrow()[n]
fn get_mut(&self, ptr: usize) -> &mut RegularNode<T>
[src]
fn get_child(&self, side: Side) -> Option<usize>
[src]
fn set_child(&mut self, child: usize, side: Side)
[src]
fn set_child_opt(&mut self, c: Option<usize>, side: Side)
[src]
fn set_parent(&mut self, p: Option<usize>)
[src]
fn get_parent(&self) -> Option<usize>
[src]
fn location(&self) -> usize
[src]
fn to_string(&self) -> String
[src]
fn to_pretty_string(&self, indent: usize) -> String
[src]
fn get_height(&self) -> usize
[src]
fn get_depth(&self) -> usize
[src]
fn get_size(&self) -> usize
[src]
fn find_min(&self) -> usize
[src]
fn side(&self) -> Side
[src]
fn get_sibling(&self) -> Option<usize>
[src]
fn get_uncle(&self) -> Option<usize>
[src]
fn is_child(&self, side: Side) -> bool
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for RegularNode<T>
impl<T> !Send for RegularNode<T>
impl<T> !Sync for RegularNode<T>
impl<T> Unpin for RegularNode<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for RegularNode<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,