[][src]Struct rust_black_trees::unbalancetree::RegularNode

pub struct RegularNode<T> {
    pub value: T,
    pub ptr: usize,
    pub parent: Option<usize>,
    pub lchild: Option<usize>,
    pub rchild: Option<usize>,
    // some fields omitted
}

Fields

value: Tptr: usizeparent: 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 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]

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

impl<T> !UnwindSafe for RegularNode<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.