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

pub struct Encoder { /* fields omitted */ }

An in-memory encoder for streams of data.

Methods

impl Encoder[src]

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

Creates a new encoder.

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

Creates a new encoder initialized with the given dictionary.

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

Creates a new encoder using an existing EncoderDictionary.

Trait Implementations

impl Operation for Encoder[src]

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

Performs a single step of this operation. Read more

Auto Trait Implementations

impl Unpin for Encoder

impl Send for Encoder

impl !Sync for Encoder

impl RefUnwindSafe for Encoder

impl UnwindSafe for Encoder

Blanket Implementations

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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