Struct objc2_metal::MTLBlendFactor
source · #[repr(transparent)]pub struct MTLBlendFactor(pub NSUInteger);Available on crate feature
MTLRenderPipeline only.Tuple Fields§
§0: NSUIntegerImplementations§
source§impl MTLBlendFactor
impl MTLBlendFactor
pub const Zero: Self = _
pub const One: Self = _
pub const SourceColor: Self = _
pub const OneMinusSourceColor: Self = _
pub const SourceAlpha: Self = _
pub const OneMinusSourceAlpha: Self = _
pub const DestinationColor: Self = _
pub const OneMinusDestinationColor: Self = _
pub const DestinationAlpha: Self = _
pub const OneMinusDestinationAlpha: Self = _
pub const SourceAlphaSaturated: Self = _
pub const BlendColor: Self = _
pub const OneMinusBlendColor: Self = _
pub const BlendAlpha: Self = _
pub const OneMinusBlendAlpha: Self = _
pub const Source1Color: Self = _
pub const OneMinusSource1Color: Self = _
pub const Source1Alpha: Self = _
pub const OneMinusSource1Alpha: Self = _
Trait Implementations§
source§impl Clone for MTLBlendFactor
impl Clone for MTLBlendFactor
source§fn clone(&self) -> MTLBlendFactor
fn clone(&self) -> MTLBlendFactor
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 MTLBlendFactor
impl Debug for MTLBlendFactor
source§impl Encode for MTLBlendFactor
impl Encode for MTLBlendFactor
source§impl Hash for MTLBlendFactor
impl Hash for MTLBlendFactor
source§impl Ord for MTLBlendFactor
impl Ord for MTLBlendFactor
source§fn cmp(&self, other: &MTLBlendFactor) -> Ordering
fn cmp(&self, other: &MTLBlendFactor) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MTLBlendFactor
impl PartialEq for MTLBlendFactor
source§fn eq(&self, other: &MTLBlendFactor) -> bool
fn eq(&self, other: &MTLBlendFactor) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for MTLBlendFactor
impl PartialOrd for MTLBlendFactor
source§fn partial_cmp(&self, other: &MTLBlendFactor) -> Option<Ordering>
fn partial_cmp(&self, other: &MTLBlendFactor) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl RefEncode for MTLBlendFactor
impl RefEncode for MTLBlendFactor
source§const ENCODING_REF: Encoding = _
const ENCODING_REF: Encoding = _
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for MTLBlendFactor
impl Eq for MTLBlendFactor
impl StructuralPartialEq for MTLBlendFactor
Auto Trait Implementations§
impl Freeze for MTLBlendFactor
impl RefUnwindSafe for MTLBlendFactor
impl Send for MTLBlendFactor
impl Sync for MTLBlendFactor
impl Unpin for MTLBlendFactor
impl UnwindSafe for MTLBlendFactor
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
source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.