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) -> Self

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: &Self) -> 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,

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

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

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

impl<T> From<T> for ExtraSamples

impl<T> Read<Exclusive, BecauseExclusive> for ExtraSamples where T: ?Sized,

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

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

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

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