Struct huffman_rust::Node
source · pub struct Node<T> {
pub value: T,
pub left: Option<Box<Node<T>>>,
pub right: Option<Box<Node<T>>>,
pub parent: *mut Node<T>,
}
Fields
value: T
left: Option<Box<Node<T>>>
right: Option<Box<Node<T>>>
parent: *mut Node<T>
Implementations
Trait Implementations
sourceimpl PartialEq<Node<HuffmanType>> for HuffmanNode
impl PartialEq<Node<HuffmanType>> for HuffmanNode
sourceimpl PartialOrd<Node<HuffmanType>> for HuffmanNode
impl PartialOrd<Node<HuffmanType>> for HuffmanNode
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreAuto Trait Implementations
impl<T> RefUnwindSafe for Node<T>where
T: RefUnwindSafe,
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>where
T: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more