Enum ExtraSamples
#[non_exhaustive]
#[repr(u16)]
pub enum ExtraSamples
Variants
-
Unspecified = 0 There is no specified association between the sample and the image.
-
AssociatedAlpha = 1 The sample is associated alpha, i.e. pre-multiplied color.
-
UnassociatedAlpha = 2 The sample is unassociated alpha such as a mask. There might be more than one such sample.
Implementations
impl ExtraSamples
const fn from_u16(val: u16) -> Option<Self>const fn to_u16(&self) -> u16
Trait Implementations
impl Clone for ExtraSamples
fn clone(&self) -> ExtraSamples
impl Copy for ExtraSamples
impl Debug for ExtraSamples
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for ExtraSamples
impl Hash for ExtraSamples
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for ExtraSamples
fn eq(&self, other: &ExtraSamples) -> bool
impl StructuralPartialEq for ExtraSamples
Auto Trait Implementations
impl Freeze for ExtraSamples
impl RefUnwindSafe for ExtraSamples
impl Send for ExtraSamples
impl Sync for ExtraSamples
impl Unpin for ExtraSamples
impl UnsafeUnpin for ExtraSamples
impl UnwindSafe for ExtraSamples
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for ExtraSamples
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for ExtraSamples
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for ExtraSamples
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ExtraSamples
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ExtraSamples
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ExtraSamples
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ExtraSamples
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Read<Exclusive, BecauseExclusive> for ExtraSamples
where
T: ?Sized,
impl<T> ToOwned for ExtraSamples
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for ExtraSamples
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ExtraSamples
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ExtraSamples
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>