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

pub struct ByteDecoder<R> {
    pub decoder: Decoder<R>,
    pub freq: Model,
    // some fields omitted
}

A basic byte-decoding arithmetic expects a special terminator code for the end of the stream

Fields

decoder: Decoder<R>

A lower level decoder

freq: Model

A basic frequency table

Implementations

impl<R: Read> ByteDecoder<R>[src]

pub fn new(r: R) -> ByteDecoder<R>

Notable traits for ByteDecoder<R>

impl<R: Read> Read for ByteDecoder<R>
[src]

Create a decoder on top of a given Reader

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

Finish decoding

Trait Implementations

impl<R: Read> Read for ByteDecoder<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for ByteDecoder<R> where
    R: RefUnwindSafe

impl<R> Send for ByteDecoder<R> where
    R: Send

impl<R> Sync for ByteDecoder<R> where
    R: Sync

impl<R> Unpin for ByteDecoder<R> where
    R: Unpin

impl<R> UnwindSafe for ByteDecoder<R> where
    R: 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<R> ReadBytesExt for R where
    R: Read + ?Sized
[src]

impl<T> ReadExact for T where
    T: Read
[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]