Enum webgl_rc::BlendFunction
source · [−]#[repr(u32)]
pub enum BlendFunction {
Zero,
One,
SrcColor,
OneMinusSrcColor,
DstColor,
OneMinusDstColor,
SrcAlpha,
OneMinusSrcAlpha,
DstAlpha,
OneMinusDstAlpha,
SrcAlphaSaturate,
}
Variants
Zero
One
SrcColor
OneMinusSrcColor
DstColor
OneMinusDstColor
SrcAlpha
OneMinusSrcAlpha
DstAlpha
OneMinusDstAlpha
SrcAlphaSaturate
Trait Implementations
sourceimpl Clone for BlendFunction
impl Clone for BlendFunction
sourcefn clone(&self) -> BlendFunction
fn clone(&self) -> BlendFunction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BlendFunction
impl Debug for BlendFunction
sourceimpl From<BlendFunction> for u32
impl From<BlendFunction> for u32
sourcefn from(enum_value: BlendFunction) -> Self
fn from(enum_value: BlendFunction) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<BlendFunction> for BlendFunction
impl PartialEq<BlendFunction> for BlendFunction
sourcefn eq(&self, other: &BlendFunction) -> bool
fn eq(&self, other: &BlendFunction) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl TryFrom<u32> for BlendFunction
impl TryFrom<u32> for BlendFunction
type Error = TryFromPrimitiveError<BlendFunction>
type Error = TryFromPrimitiveError<BlendFunction>
The type returned in the event of a conversion error.
sourcefn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for BlendFunction
impl TryFromPrimitive for BlendFunction
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for BlendFunction
impl Eq for BlendFunction
impl StructuralEq for BlendFunction
impl StructuralPartialEq for BlendFunction
Auto Trait Implementations
impl RefUnwindSafe for BlendFunction
impl Send for BlendFunction
impl Sync for BlendFunction
impl Unpin for BlendFunction
impl UnwindSafe for BlendFunction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more