#[repr(u32)]pub enum BlendFunction {
Zero = 0,
One = 1,
SrcColor = 768,
OneMinusSrcColor = 769,
DstColor = 774,
OneMinusDstColor = 775,
SrcAlpha = 770,
OneMinusSrcAlpha = 771,
DstAlpha = 772,
OneMinusDstAlpha = 773,
SrcAlphaSaturate = 776,
}
Variants§
Zero = 0
One = 1
SrcColor = 768
OneMinusSrcColor = 769
DstColor = 774
OneMinusDstColor = 775
SrcAlpha = 770
OneMinusSrcAlpha = 771
DstAlpha = 772
OneMinusDstAlpha = 773
SrcAlphaSaturate = 776
Trait Implementations§
Source§impl Clone for BlendFunction
impl Clone for BlendFunction
Source§fn clone(&self) -> BlendFunction
fn clone(&self) -> BlendFunction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BlendFunction
impl Debug for BlendFunction
Source§impl From<BlendFunction> for u32
impl From<BlendFunction> for u32
Source§fn from(enum_value: BlendFunction) -> Self
fn from(enum_value: BlendFunction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BlendFunction
impl PartialEq for BlendFunction
Source§impl TryFrom<u32> for BlendFunction
impl TryFrom<u32> for BlendFunction
Source§type Error = TryFromPrimitiveError<BlendFunction>
type Error = TryFromPrimitiveError<BlendFunction>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for BlendFunction
impl TryFromPrimitive for BlendFunction
const NAME: &'static str = "BlendFunction"
type Primitive = u32
type Error = TryFromPrimitiveError<BlendFunction>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for BlendFunction
impl Eq for BlendFunction
impl StructuralPartialEq for BlendFunction
Auto Trait Implementations§
impl Freeze for BlendFunction
impl RefUnwindSafe for BlendFunction
impl Send for BlendFunction
impl Sync for BlendFunction
impl Unpin for BlendFunction
impl UnwindSafe for BlendFunction
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