#[repr(transparent)]pub struct TextureSwizzle(pub u8);Expand description
Texture swizzle values.
C++ equivalent: MTL::TextureSwizzle
Note: This uses uint8_t in C++, not NS::UInteger
Tuple Fields§
§0: u8Implementations§
Trait Implementations§
Source§impl Clone for TextureSwizzle
impl Clone for TextureSwizzle
Source§fn clone(&self) -> TextureSwizzle
fn clone(&self) -> TextureSwizzle
Returns a duplicate 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 TextureSwizzle
impl Debug for TextureSwizzle
Source§impl Default for TextureSwizzle
impl Default for TextureSwizzle
Source§fn default() -> TextureSwizzle
fn default() -> TextureSwizzle
Returns the “default value” for a type. Read more
Source§impl Hash for TextureSwizzle
impl Hash for TextureSwizzle
Source§impl PartialEq for TextureSwizzle
impl PartialEq for TextureSwizzle
impl Copy for TextureSwizzle
impl Eq for TextureSwizzle
impl StructuralPartialEq for TextureSwizzle
Auto Trait Implementations§
impl Freeze for TextureSwizzle
impl RefUnwindSafe for TextureSwizzle
impl Send for TextureSwizzle
impl Sync for TextureSwizzle
impl Unpin for TextureSwizzle
impl UnwindSafe for TextureSwizzle
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