pub enum AlphaType {
Premultiplied,
Straight,
}Expand description
AlphaType describes whether a pixel’s color components include its alpha.
Variants§
Premultiplied
Premultiplied stores color multiplied by alpha.
Straight
Straight stores color independently of alpha.
Trait Implementations§
impl Copy for AlphaType
impl Eq for AlphaType
impl StructuralPartialEq for AlphaType
Auto Trait Implementations§
impl Forget for AlphaType
impl Freeze for AlphaType
impl Move for AlphaType
impl RefUnwindSafe for AlphaType
impl Send for AlphaType
impl Sync for AlphaType
impl Unpin for AlphaType
impl UnsafeUnpin for AlphaType
impl UnwindSafe for AlphaType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.