struct Huff {
nodes: Vec<[i32; 2]>,
}Expand description
二分木のハフマン復号器。nodes[i] = [0 の子, 1 の子]、負の値は葉(-(記号 + 1))、0 は未使用。
Fields§
§nodes: Vec<[i32; 2]>Implementations§
Auto Trait Implementations§
impl Freeze for Huff
impl RefUnwindSafe for Huff
impl Send for Huff
impl Sync for Huff
impl Unpin for Huff
impl UnsafeUnpin for Huff
impl UnwindSafe for Huff
Blanket Implementations§
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