[][src]Trait red_black::Node

pub trait Node: Sized {
    type Key: Ord + Debug;
    type Ptr: NodePtr<Self>;
    pub fn new(node: &Self) -> Self::Ptr;
pub fn free(&mut self);
pub fn left(&self) -> &Self::Ptr;
pub fn left_mut(&mut self) -> &mut Self::Ptr;
pub fn right(&self) -> &Self::Ptr;
pub fn right_mut(&mut self) -> &mut Self::Ptr;
pub fn key(&self) -> &Self::Key;
pub fn update(&mut self, node: &Self);
pub fn is_black(&self) -> bool;
pub fn set_black(&mut self);
pub fn set_red(&mut self); pub fn is_red(&self) -> bool { ... } }

Associated Types

type Key: Ord + Debug[src]

type Ptr: NodePtr<Self>[src]

Loading content...

Required methods

pub fn new(node: &Self) -> Self::Ptr[src]

pub fn free(&mut self)[src]

pub fn left(&self) -> &Self::Ptr[src]

pub fn left_mut(&mut self) -> &mut Self::Ptr[src]

pub fn right(&self) -> &Self::Ptr[src]

pub fn right_mut(&mut self) -> &mut Self::Ptr[src]

pub fn key(&self) -> &Self::Key[src]

pub fn update(&mut self, node: &Self)[src]

pub fn is_black(&self) -> bool[src]

pub fn set_black(&mut self)[src]

pub fn set_red(&mut self)[src]

Loading content...

Provided methods

pub fn is_red(&self) -> bool[src]

Loading content...

Implementors

Loading content...