[][src]Struct lzma::writer::LzmaWriter

pub struct LzmaWriter<T> { /* fields omitted */ }

Implementations

impl<T: Write> LzmaWriter<T>[src]

pub fn new_compressor(inner: T, preset: u32) -> Result<LzmaWriter<T>, LzmaError>[src]

pub fn new_decompressor(inner: T) -> Result<LzmaWriter<T>, LzmaError>[src]

pub fn with_capacity(
    capacity: usize,
    inner: T,
    direction: Direction,
    preset: u32
) -> Result<LzmaWriter<T>, LzmaError>
[src]

impl<W: Write> LzmaWriter<W>[src]

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

Finalizes the LZMA stream so that it finishes compressing or decompressing.

This must be called after all writing is done to ensure the last pieces of the compressed or decompressed stream get written out.

Trait Implementations

impl<W: Write> Write for LzmaWriter<W>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for LzmaWriter<T> where
    T: RefUnwindSafe

impl<T> Send for LzmaWriter<T> where
    T: Send

impl<T> !Sync for LzmaWriter<T>

impl<T> Unpin for LzmaWriter<T> where
    T: Unpin

impl<T> UnwindSafe for LzmaWriter<T> where
    T: 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<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.