enum HuffmanTree {
Leaf(u8),
Node(Box<HuffmanTree>, Box<HuffmanTree>),
}Variants§
Leaf(u8)
Node(Box<HuffmanTree>, Box<HuffmanTree>)
Trait Implementations§
Source§impl Debug for HuffmanTree
impl Debug for HuffmanTree
Source§impl Ord for HuffmanTree
impl Ord for HuffmanTree
Source§fn cmp(&self, other: &HuffmanTree) -> Ordering
fn cmp(&self, other: &HuffmanTree) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HuffmanTree
impl PartialEq for HuffmanTree
Source§impl PartialOrd for HuffmanTree
impl PartialOrd for HuffmanTree
impl Eq for HuffmanTree
impl StructuralPartialEq for HuffmanTree
Auto Trait Implementations§
impl Freeze for HuffmanTree
impl RefUnwindSafe for HuffmanTree
impl Send for HuffmanTree
impl Sync for HuffmanTree
impl Unpin for HuffmanTree
impl UnwindSafe for HuffmanTree
Blanket Implementations§
Source§impl<T> AsTotalOrd for Twhere
T: PartialOrd,
impl<T> AsTotalOrd for Twhere
T: PartialOrd,
fn as_total_ord(&self) -> TotalOrd<&T>
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more