pub struct LosslessEncodingOptions {
pub optimization_level: u8,
}Expand description
Lossless encoder tuning knobs.
Fields§
§optimization_level: u8Compression effort from 0 to 9.
0: fastest path, raw-only search1..=3: fast presets that should still beat PNG on typical images4..=6: balanced presets7..=9: increasingly heavy search, with9enabling the slowest trials
Trait Implementations§
Source§impl Clone for LosslessEncodingOptions
impl Clone for LosslessEncodingOptions
Source§fn clone(&self) -> LosslessEncodingOptions
fn clone(&self) -> LosslessEncodingOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LosslessEncodingOptions
Source§impl Debug for LosslessEncodingOptions
impl Debug for LosslessEncodingOptions
Source§impl Default for LosslessEncodingOptions
impl Default for LosslessEncodingOptions
impl Eq for LosslessEncodingOptions
Source§impl PartialEq for LosslessEncodingOptions
impl PartialEq for LosslessEncodingOptions
Source§fn eq(&self, other: &LosslessEncodingOptions) -> bool
fn eq(&self, other: &LosslessEncodingOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LosslessEncodingOptions
Auto Trait Implementations§
impl Freeze for LosslessEncodingOptions
impl RefUnwindSafe for LosslessEncodingOptions
impl Send for LosslessEncodingOptions
impl Sync for LosslessEncodingOptions
impl Unpin for LosslessEncodingOptions
impl UnsafeUnpin for LosslessEncodingOptions
impl UnwindSafe for LosslessEncodingOptions
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