[][src]Struct compress::entropy::ari::table::ByteEncoder

pub struct ByteEncoder<W> {
    pub encoder: Encoder<W>,
    pub freq: Model,
}

A basic byte-encoding arithmetic uses a special terminator code to end the stream

Fields

encoder: Encoder<W>

A lower level encoder

freq: Model

A basic frequency table

Implementations

impl<W: Write> ByteEncoder<W>[src]

pub fn new(w: W) -> ByteEncoder<W>

Notable traits for ByteEncoder<W>

impl<W: Write> Write for ByteEncoder<W>
[src]

Create a new encoder on top of a given Writer

pub fn finish(self) -> (W, Result<()>)[src]

Finish encoding & write the terminator symbol

Trait Implementations

impl<W: Write> Write for ByteEncoder<W>[src]

Auto Trait Implementations

impl<W> RefUnwindSafe for ByteEncoder<W> where
    W: RefUnwindSafe

impl<W> Send for ByteEncoder<W> where
    W: Send

impl<W> Sync for ByteEncoder<W> where
    W: Sync

impl<W> Unpin for ByteEncoder<W> where
    W: Unpin

impl<W> UnwindSafe for ByteEncoder<W> where
    W: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<W> WriteBytesExt for W where
    W: Write + ?Sized
[src]