Struct objc2_metal::MTLTextureType
source · #[repr(transparent)]pub struct MTLTextureType(pub NSUInteger);Available on crate feature
MTLTexture only.Tuple Fields§
§0: NSUIntegerImplementations§
source§impl MTLTextureType
impl MTLTextureType
pub const MTLTextureType1D: Self = _
pub const MTLTextureType1DArray: Self = _
pub const MTLTextureType2D: Self = _
pub const MTLTextureType2DArray: Self = _
pub const MTLTextureType2DMultisample: Self = _
pub const Cube: Self = _
pub const CubeArray: Self = _
pub const MTLTextureType3D: Self = _
pub const MTLTextureType2DMultisampleArray: Self = _
pub const TextureBuffer: Self = _
Trait Implementations§
source§impl Clone for MTLTextureType
impl Clone for MTLTextureType
source§fn clone(&self) -> MTLTextureType
fn clone(&self) -> MTLTextureType
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 MTLTextureType
impl Debug for MTLTextureType
source§impl Encode for MTLTextureType
impl Encode for MTLTextureType
source§impl Hash for MTLTextureType
impl Hash for MTLTextureType
source§impl Ord for MTLTextureType
impl Ord for MTLTextureType
source§fn cmp(&self, other: &MTLTextureType) -> Ordering
fn cmp(&self, other: &MTLTextureType) -> 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 MTLTextureType
impl PartialEq for MTLTextureType
source§fn eq(&self, other: &MTLTextureType) -> bool
fn eq(&self, other: &MTLTextureType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for MTLTextureType
impl PartialOrd for MTLTextureType
source§fn partial_cmp(&self, other: &MTLTextureType) -> Option<Ordering>
fn partial_cmp(&self, other: &MTLTextureType) -> 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 MTLTextureType
impl RefEncode for MTLTextureType
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 MTLTextureType
impl Eq for MTLTextureType
impl StructuralPartialEq for MTLTextureType
Auto Trait Implementations§
impl Freeze for MTLTextureType
impl RefUnwindSafe for MTLTextureType
impl Send for MTLTextureType
impl Sync for MTLTextureType
impl Unpin for MTLTextureType
impl UnwindSafe for MTLTextureType
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.