pub struct ArrayType(/* private fields */);Methods from Deref<Target = ArrayTypeRef>§
pub fn array_length(&self) -> NSUInteger
pub fn stride(&self) -> NSUInteger
pub fn element_type(&self) -> MTLDataType
pub fn element_struct_type(&self) -> MTLStructType
pub fn element_array_type(&self) -> MTLArrayType
Trait Implementations§
Source§impl AsMut<ArrayTypeRef> for ArrayType
impl AsMut<ArrayTypeRef> for ArrayType
Source§fn as_mut(&mut self) -> &mut ArrayTypeRef
fn as_mut(&mut self) -> &mut ArrayTypeRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<ArrayTypeRef> for ArrayType
impl AsRef<ArrayTypeRef> for ArrayType
Source§fn as_ref(&self) -> &ArrayTypeRef
fn as_ref(&self) -> &ArrayTypeRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<ArrayTypeRef> for ArrayType
impl Borrow<ArrayTypeRef> for ArrayType
Source§fn borrow(&self) -> &ArrayTypeRef
fn borrow(&self) -> &ArrayTypeRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<ArrayTypeRef> for ArrayType
impl BorrowMut<ArrayTypeRef> for ArrayType
Source§fn borrow_mut(&mut self) -> &mut ArrayTypeRef
fn borrow_mut(&mut self) -> &mut ArrayTypeRef
Mutably borrows from an owned value. Read more
Source§impl Deref for ArrayType
impl Deref for ArrayType
Source§type Target = ArrayTypeRef
type Target = ArrayTypeRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &ArrayTypeRef
fn deref(&self) -> &ArrayTypeRef
Dereferences the value.
Source§impl DerefMut for ArrayType
impl DerefMut for ArrayType
Source§fn deref_mut(&mut self) -> &mut ArrayTypeRef
fn deref_mut(&mut self) -> &mut ArrayTypeRef
Mutably dereferences the value.
Source§impl ForeignType for ArrayType
impl ForeignType for ArrayType
Source§type CType = MTLArrayType
type CType = MTLArrayType
The raw C type.
Source§type Ref = ArrayTypeRef
type Ref = ArrayTypeRef
The type representing a reference to this type.
Source§unsafe fn from_ptr(ptr: *mut MTLArrayType) -> ArrayType
unsafe fn from_ptr(ptr: *mut MTLArrayType) -> ArrayType
Constructs an instance of this type from its raw type. Read more
Source§fn as_ptr(&self) -> *mut MTLArrayType
fn as_ptr(&self) -> *mut MTLArrayType
Returns a raw pointer to the wrapped value.
impl Send for ArrayType
impl Sync for ArrayType
Auto Trait Implementations§
impl Freeze for ArrayType
impl RefUnwindSafe for ArrayType
impl Unpin for ArrayType
impl UnsafeUnpin for ArrayType
impl UnwindSafe for ArrayType
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