pub enum SizeGoal {
Target(u64),
Reduce(f64),
Preset(Preset),
Quality,
}Expand description
What the user wants in terms of size.
Variants§
Target(u64)
Fit into an absolute size (bytes).
Reduce(f64)
Reduce by a fraction of the original (0.70 = “by 70%”).
Preset(Preset)
Platform preset (sets the target size).
Quality
Smart, quality-preserving shrink without a hard limit.
Trait Implementations§
impl StructuralPartialEq for SizeGoal
Auto Trait Implementations§
impl Freeze for SizeGoal
impl RefUnwindSafe for SizeGoal
impl Send for SizeGoal
impl Sync for SizeGoal
impl Unpin for SizeGoal
impl UnsafeUnpin for SizeGoal
impl UnwindSafe for SizeGoal
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