pub struct WebpConfig {
pub mode: WebpMode,
pub quality: u8,
}Expand description
Configuration for a WebpEncoder.
quality ranges 0..=100. For WebpMode::Lossy it is the usual quality factor (higher =
larger, closer to the source); for WebpMode::Lossless it is interpreted as an effort level
(higher = smaller output, more work). It is ignored where a mode does not use it.
Fields§
§mode: WebpModeThe bitstream mode to encode.
quality: u8Quality / effort, 0..=100.
Trait Implementations§
Source§impl Clone for WebpConfig
impl Clone for WebpConfig
Source§fn clone(&self) -> WebpConfig
fn clone(&self) -> WebpConfig
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 WebpConfig
Source§impl Debug for WebpConfig
impl Debug for WebpConfig
Source§impl Default for WebpConfig
impl Default for WebpConfig
impl Eq for WebpConfig
Source§impl PartialEq for WebpConfig
impl PartialEq for WebpConfig
Source§fn eq(&self, other: &WebpConfig) -> bool
fn eq(&self, other: &WebpConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WebpConfig
Auto Trait Implementations§
impl Freeze for WebpConfig
impl RefUnwindSafe for WebpConfig
impl Send for WebpConfig
impl Sync for WebpConfig
impl Unpin for WebpConfig
impl UnsafeUnpin for WebpConfig
impl UnwindSafe for WebpConfig
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