A custom chain of filters to configure an encoding stream.
Creates a new filter chain with no filters.
pub fn lzma1(&mut self, opts: &LzmaOptions) -> &mut Filters[src]
Add an LZMA1 filter.
LZMA1 is the very same thing as what was called just LZMA in LZMA Utils, 7-Zip, and LZMA SDK. It's called LZMA1 here to prevent developers from accidentally using LZMA when they actually want LZMA2.
LZMA1 shouldn't be used for new applications unless you really know what you are doing. LZMA2 is almost always a better choice.
pub fn lzma2(&mut self, opts: &LzmaOptions) -> &mut Filters[src]
Add an LZMA2 filter.
Usually you want this instead of LZMA1. Compared to LZMA1, LZMA2 adds
SyncFlush, uncompressed chunks (smaller expansion when
trying to compress uncompressible data), possibility to change
position_bits in the
middle of encoding, and some other internal improvements.
Add a filter for x86 binaries.
Add a filter for PowerPC binaries.
Add a filter for IA-64 (itanium) binaries.
Add a filter for ARM binaries.
Add a filter for ARM-Thumb binaries.
Add a filter for SPARC binaries.
impl RefUnwindSafe for Filters
impl UnwindSafe for Filters
type Error = Infallible
The type returned in the event of a conversion error.