[][src]Struct lzham::compress::Compressor

pub struct Compressor(_);

A high level compressor.

Implementations

impl Compressor[src]

pub fn from_options(options: CompressionOptions) -> Self[src]

Creates a new Compressor from options.

pub fn reinit(&self) -> Self[src]

Reinitializes the compressor.

pub fn deinit(&self) -> u32[src]

Deinitializes the compressor.

It cannot be used to compress further.

pub fn compress<R: BufRead, W: Write>(
    &self,
    input: &mut R,
    output: &mut W
) -> CompressionStatus
[src]

Compresses input data into the output buffer with already specified options.

Trait Implementations

impl Clone for Compressor[src]

impl Debug for Compressor[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.