#[non_exhaustive]#[repr(u32)]pub enum AlphaOperation {
Show 13 variants
Over = 0,
In = 1,
Out = 2,
Atop = 3,
Xor = 4,
Plus = 5,
OverPremultiplied = 6,
InPremultiplied = 7,
OutPremultiplied = 8,
AtopPremultiplied = 9,
XorPremultiplied = 10,
PlusPremultiplied = 11,
Premultiplied = 12,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Over = 0
In = 1
Out = 2
Atop = 3
Xor = 4
Plus = 5
OverPremultiplied = 6
InPremultiplied = 7
OutPremultiplied = 8
AtopPremultiplied = 9
XorPremultiplied = 10
PlusPremultiplied = 11
Premultiplied = 12
Trait Implementations§
Source§impl Clone for AlphaOperation
impl Clone for AlphaOperation
Source§fn clone(&self) -> AlphaOperation
fn clone(&self) -> AlphaOperation
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 AlphaOperation
Source§impl Debug for AlphaOperation
impl Debug for AlphaOperation
Source§impl Display for AlphaOperation
impl Display for AlphaOperation
impl Eq for AlphaOperation
Source§impl From<AlphaOperation> for u32
impl From<AlphaOperation> for u32
Source§fn from(enum_value: AlphaOperation) -> Self
fn from(enum_value: AlphaOperation) -> Self
Converts to this type from the input type.
Source§impl From<AlphaOperation> for NppiAlphaOp
impl From<AlphaOperation> for NppiAlphaOp
Source§fn from(value: AlphaOperation) -> Self
fn from(value: AlphaOperation) -> Self
Converts to this type from the input type.
Source§impl From<NppiAlphaOp> for AlphaOperation
impl From<NppiAlphaOp> for AlphaOperation
Source§fn from(value: NppiAlphaOp) -> Self
fn from(value: NppiAlphaOp) -> Self
Converts to this type from the input type.
Source§impl Hash for AlphaOperation
impl Hash for AlphaOperation
Source§impl PartialEq for AlphaOperation
impl PartialEq for AlphaOperation
Source§fn eq(&self, other: &AlphaOperation) -> bool
fn eq(&self, other: &AlphaOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AlphaOperation
Source§impl TryFrom<u32> for AlphaOperation
impl TryFrom<u32> for AlphaOperation
Source§type Error = TryFromPrimitiveError<AlphaOperation>
type Error = TryFromPrimitiveError<AlphaOperation>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for AlphaOperation
impl TryFromPrimitive for AlphaOperation
const NAME: &'static str = "AlphaOperation"
type Primitive = u32
type Error = TryFromPrimitiveError<AlphaOperation>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for AlphaOperation
impl RefUnwindSafe for AlphaOperation
impl Send for AlphaOperation
impl Sync for AlphaOperation
impl Unpin for AlphaOperation
impl UnsafeUnpin for AlphaOperation
impl UnwindSafe for AlphaOperation
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