pub struct Options {
pub iteration_count: NonZeroU64,
pub iterations_without_improvement: NonZeroU64,
pub maximum_block_splits: u16,
}
Expand description
Options for the Zopfli compression algorithm.
Fields§
§iteration_count: NonZeroU64
Maximum amount of times to rerun forward and backward pass to optimize LZ77 compression cost. Good values: 10, 15 for small files, 5 for files over several MB in size or it will be too slow.
Default value: 15.
iterations_without_improvement: NonZeroU64
Stop after rerunning forward and backward pass this many times without finding a smaller representation of the block.
Default value: practically infinite (maximum u64
value)
maximum_block_splits: u16
Maximum amount of blocks to split into (0 for unlimited, but this can give extreme results that hurt compression on some files).
Default value: 15.
Trait Implementations§
Source§impl Ord for Options
impl Ord for Options
Source§impl PartialOrd for Options
impl PartialOrd for Options
impl Copy for Options
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more