[][src]Struct zstd::stream::raw::Decoder

pub struct Decoder { /* fields omitted */ }

An in-memory decoder for streams of data.

Methods

impl Decoder[src]

pub fn new() -> Result<Self>[src]

Creates a new decoder.

pub fn with_dictionary(dictionary: &[u8]) -> Result<Self>[src]

Creates a new decoder initialized with the given dictionary.

pub fn with_prepared_dictionary(dictionary: &DecoderDictionary) -> Result<Self>[src]

Creates a new decoder, using an existing DecoderDictionary.

Trait Implementations

impl Operation for Decoder[src]

fn run_on_buffers(&mut self, input: &[u8], output: &mut [u8]) -> Result<Status>[src]

Performs a single step of this operation. Read more

fn flush(&mut self, output: &mut OutBuffer) -> Result<usize>[src]

Flushes any internal buffer, if any. Read more

Auto Trait Implementations

impl Send for Decoder

impl !Sync for Decoder

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.