pub struct ArgumentDescriptor(/* private fields */);Implementations§
Source§impl ArgumentDescriptor
impl ArgumentDescriptor
pub fn new<'a>() -> &'a ArgumentDescriptorRef
Methods from Deref<Target = ArgumentDescriptorRef>§
pub fn set_data_type(&self, ty: MTLDataType)
pub fn set_index(&self, index: NSUInteger)
pub fn set_access(&self, access: MTLArgumentAccess)
pub fn set_array_length(&self, length: NSUInteger)
pub fn set_texture_type(&self, ty: MTLTextureType)
Trait Implementations§
Source§impl AsMut<ArgumentDescriptorRef> for ArgumentDescriptor
impl AsMut<ArgumentDescriptorRef> for ArgumentDescriptor
Source§fn as_mut(&mut self) -> &mut ArgumentDescriptorRef
fn as_mut(&mut self) -> &mut ArgumentDescriptorRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<ArgumentDescriptorRef> for ArgumentDescriptor
impl AsRef<ArgumentDescriptorRef> for ArgumentDescriptor
Source§fn as_ref(&self) -> &ArgumentDescriptorRef
fn as_ref(&self) -> &ArgumentDescriptorRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<ArgumentDescriptorRef> for ArgumentDescriptor
impl Borrow<ArgumentDescriptorRef> for ArgumentDescriptor
Source§fn borrow(&self) -> &ArgumentDescriptorRef
fn borrow(&self) -> &ArgumentDescriptorRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<ArgumentDescriptorRef> for ArgumentDescriptor
impl BorrowMut<ArgumentDescriptorRef> for ArgumentDescriptor
Source§fn borrow_mut(&mut self) -> &mut ArgumentDescriptorRef
fn borrow_mut(&mut self) -> &mut ArgumentDescriptorRef
Mutably borrows from an owned value. Read more
Source§impl Clone for ArgumentDescriptor
impl Clone for ArgumentDescriptor
Source§fn clone(&self) -> ArgumentDescriptor
fn clone(&self) -> ArgumentDescriptor
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArgumentDescriptor
impl Debug for ArgumentDescriptor
Source§impl Deref for ArgumentDescriptor
impl Deref for ArgumentDescriptor
Source§type Target = ArgumentDescriptorRef
type Target = ArgumentDescriptorRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &ArgumentDescriptorRef
fn deref(&self) -> &ArgumentDescriptorRef
Dereferences the value.
Source§impl DerefMut for ArgumentDescriptor
impl DerefMut for ArgumentDescriptor
Source§fn deref_mut(&mut self) -> &mut ArgumentDescriptorRef
fn deref_mut(&mut self) -> &mut ArgumentDescriptorRef
Mutably dereferences the value.
Source§impl Drop for ArgumentDescriptor
impl Drop for ArgumentDescriptor
Source§impl ForeignType for ArgumentDescriptor
impl ForeignType for ArgumentDescriptor
Source§type CType = MTLArgumentDescriptor
type CType = MTLArgumentDescriptor
The raw C type.
Source§type Ref = ArgumentDescriptorRef
type Ref = ArgumentDescriptorRef
The type representing a reference to this type.
Source§unsafe fn from_ptr(ptr: *mut MTLArgumentDescriptor) -> ArgumentDescriptor
unsafe fn from_ptr(ptr: *mut MTLArgumentDescriptor) -> ArgumentDescriptor
Constructs an instance of this type from its raw type. Read more
Source§fn as_ptr(&self) -> *mut MTLArgumentDescriptor
fn as_ptr(&self) -> *mut MTLArgumentDescriptor
Returns a raw pointer to the wrapped value.
impl Send for ArgumentDescriptor
impl Sync for ArgumentDescriptor
Auto Trait Implementations§
impl Freeze for ArgumentDescriptor
impl RefUnwindSafe for ArgumentDescriptor
impl Unpin for ArgumentDescriptor
impl UnwindSafe for ArgumentDescriptor
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)