pub struct ArrayTypeRef(/* private fields */);Expand description
A borrowed reference to a ArrayType.
Implementations§
Source§impl ArrayTypeRef
impl 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 Debug for ArrayTypeRef
impl Debug for ArrayTypeRef
Source§impl ForeignTypeRef for ArrayTypeRef
impl ForeignTypeRef for ArrayTypeRef
Source§type CType = MTLArrayType
type CType = MTLArrayType
The raw C type.
Source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type. Read more
Source§impl Message for ArrayTypeRef
impl Message for ArrayTypeRef
Source§unsafe fn send_message<A, R>(
&self,
sel: Sel,
args: A,
) -> Result<R, MessageError>
unsafe fn send_message<A, R>( &self, sel: Sel, args: A, ) -> Result<R, MessageError>
Sends a message to self with the given selector and arguments. Read more
Source§fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
Verifies that the argument and return types match the encoding of the
method for the given selector. Read more
impl Send for ArrayTypeRef
impl Sync for ArrayTypeRef
Auto Trait Implementations§
impl !RefUnwindSafe for ArrayTypeRef
impl Freeze for ArrayTypeRef
impl Unpin for ArrayTypeRef
impl UnsafeUnpin for ArrayTypeRef
impl UnwindSafe for ArrayTypeRef
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