pub trait ColoredNode<T>: Node<T> {
// Required methods
fn new(val: T, selfptr: usize, data: Rc<RefCell<Vec<ColorNode<T>>>>) -> Self;
fn is_red(&self) -> bool;
fn is_child_black(&self, side: Side) -> bool;
fn is_parent_black(&self) -> bool;
fn is_sibling_black(&self) -> bool;
}
Required Methods§
fn new(val: T, selfptr: usize, data: Rc<RefCell<Vec<ColorNode<T>>>>) -> Self
fn is_red(&self) -> bool
fn is_child_black(&self, side: Side) -> bool
fn is_parent_black(&self) -> bool
fn is_sibling_black(&self) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.