Struct WebPDecodeOptions

#[non_exhaustive]
pub struct WebPDecodeOptions { pub lossy_upsampling: UpsamplingMethod }

WebP decoder configuration options

Fields

lossy_upsampling: UpsamplingMethod

The upsampling method used in conversion from lossy yuv to rgb

Defaults to Bilinear.

Trait Implementations

impl Clone for WebPDecodeOptions

fn clone(&self) -> WebPDecodeOptions

impl Default for WebPDecodeOptions

fn default() -> Self

Auto Trait Implementations

impl Freeze for WebPDecodeOptions

impl RefUnwindSafe for WebPDecodeOptions

impl Send for WebPDecodeOptions

impl Sync for WebPDecodeOptions

impl Unpin for WebPDecodeOptions

impl UnsafeUnpin for WebPDecodeOptions

impl UnwindSafe for WebPDecodeOptions

Blanket Implementations

impl<T> Any for WebPDecodeOptions where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for WebPDecodeOptions where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for WebPDecodeOptions where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for WebPDecodeOptions where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for WebPDecodeOptions

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for WebPDecodeOptions where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for WebPDecodeOptions where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for WebPDecodeOptions where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for WebPDecodeOptions where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>