pub struct HuffmanEncoder { /* private fields */ }
Trait Implementations§
Source§impl Clone for HuffmanEncoder
impl Clone for HuffmanEncoder
Source§fn clone(&self) -> HuffmanEncoder
fn clone(&self) -> HuffmanEncoder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HuffmanEncoder
impl Debug for HuffmanEncoder
Source§impl Default for HuffmanEncoder
impl Default for HuffmanEncoder
Source§fn default() -> HuffmanEncoder
fn default() -> HuffmanEncoder
Returns the “default value” for a type. Read more
Source§impl Encoder for HuffmanEncoder
impl Encoder for HuffmanEncoder
Source§impl Packable for HuffmanEncoder
impl Packable for HuffmanEncoder
Source§fn pack_sz(&self) -> usize
fn pack_sz(&self) -> usize
pack_sz
returns the number of bytes required to serialize the Packable object.Source§fn pack(&self, buf: &mut [u8])
fn pack(&self, buf: &mut [u8])
pack
fills in the buffer out
with the packed binary representation of the Packable
object. The implementor is responsible to ensure that out
is exactly pack_sz()
bytes
and implementations are encouraged to assert this. Read moreSource§fn stream<W>(&self, writer: &mut W) -> Result<usize, Error>
fn stream<W>(&self, writer: &mut W) -> Result<usize, Error>
stream
writes the object to the provided writer using the same representation that would
be used in a call to pack
. The implementor is responsible for making sure that the
number of bytes written is exactly equal to the number of required bytes. Read moreSource§impl<'a> Unpackable<'a> for HuffmanEncoder
impl<'a> Unpackable<'a> for HuffmanEncoder
Auto Trait Implementations§
impl Freeze for HuffmanEncoder
impl RefUnwindSafe for HuffmanEncoder
impl Send for HuffmanEncoder
impl Sync for HuffmanEncoder
impl Unpin for HuffmanEncoder
impl UnwindSafe for HuffmanEncoder
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