#[non_exhaustive]pub enum Preset {
Ultrafast,
Faster,
Fast,
Medium,
Slow,
Slower,
Veryslow,
}Expand description
Encoding preset (speed vs quality tradeoff).
Presets control the speed/quality balance during encoding:
- Faster presets = faster encoding, lower quality, larger file size
- Slower presets = slower encoding, higher quality, smaller file size
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ultrafast
Ultra fast (low quality)
Faster
Faster
Fast
Fast
Medium
Medium (balanced)
Slow
Slow (high quality)
Slower
Slower
Veryslow
Very slow (highest quality)
Implementations§
Trait Implementations§
impl Copy for Preset
impl Eq for Preset
impl StructuralPartialEq for Preset
Auto Trait Implementations§
impl Freeze for Preset
impl RefUnwindSafe for Preset
impl Send for Preset
impl Sync for Preset
impl Unpin for Preset
impl UnsafeUnpin for Preset
impl UnwindSafe for Preset
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