Struct lzma_rs::decompress::Options[][src]

pub struct Options {
    pub unpacked_size: UnpackedSize,
    pub memlimit: Option<usize>,
    pub allow_incomplete: bool,
}

Options to tweak decompression behavior.

Fields

unpacked_size: UnpackedSize

Defines whether the unpacked size should be read from the header or provided.

The default is UnpackedSize::ReadFromHeader.

memlimit: Option<usize>

Defines whether the dictionary’s dynamic size should be limited during decompression.

The default is unlimited.

allow_incomplete: bool

Determines whether to bypass end of stream validation.

This option only applies to the Stream API.

The default is false (always do completion check).

Trait Implementations

impl Clone for Options[src]

impl Copy for Options[src]

impl Debug for Options[src]

impl Default for Options[src]

impl PartialEq<Options> for Options[src]

impl StructuralPartialEq for Options[src]

Auto Trait Implementations

impl RefUnwindSafe for Options

impl Send for Options

impl Sync for Options

impl Unpin for Options

impl UnwindSafe for Options

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.