Struct objc2_metal::MTLClearColor
source · #[repr(C)]pub struct MTLClearColor {
pub red: c_double,
pub green: c_double,
pub blue: c_double,
pub alpha: c_double,
}Available on crate feature
MTLRenderPass only.Fields§
§red: c_double§green: c_double§blue: c_double§alpha: c_doubleTrait Implementations§
source§impl Clone for MTLClearColor
impl Clone for MTLClearColor
source§fn clone(&self) -> MTLClearColor
fn clone(&self) -> MTLClearColor
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 MTLClearColor
impl Debug for MTLClearColor
source§impl Encode for MTLClearColor
impl Encode for MTLClearColor
source§impl PartialEq for MTLClearColor
impl PartialEq for MTLClearColor
source§fn eq(&self, other: &MTLClearColor) -> bool
fn eq(&self, other: &MTLClearColor) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl RefEncode for MTLClearColor
impl RefEncode for MTLClearColor
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 MTLClearColor
impl StructuralPartialEq for MTLClearColor
Auto Trait Implementations§
impl Freeze for MTLClearColor
impl RefUnwindSafe for MTLClearColor
impl Send for MTLClearColor
impl Sync for MTLClearColor
impl Unpin for MTLClearColor
impl UnwindSafe for MTLClearColor
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.