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

pub struct Encoder<'a> { /* fields omitted */ }

An in-memory encoder for streams of data.

Implementations

impl Encoder<'static>[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.

impl<'a> Encoder<'a>[src]

pub fn with_prepared_dictionary<'b>(
    dictionary: &EncoderDictionary<'b>
) -> Result<Self> where
    'b: 'a, 
[src]

Creates a new encoder using an existing EncoderDictionary.

pub fn set_parameter(&mut self, parameter: CParameter) -> Result<()>[src]

Sets a compression parameter for this encoder.

Trait Implementations

impl<'a> Operation for Encoder<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Encoder<'a>

impl<'a> Send for Encoder<'a>

impl<'a> !Sync for Encoder<'a>

impl<'a> Unpin for Encoder<'a>

impl<'a> UnwindSafe for Encoder<'a>

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.