Struct metal::VertexAttributeDescriptorArray
source · pub struct VertexAttributeDescriptorArray(/* private fields */);
Methods from Deref<Target = VertexAttributeDescriptorArrayRef>§
pub fn object_at( &self, index: NSUInteger, ) -> Option<&VertexAttributeDescriptorRef>
pub fn set_object_at( &self, index: NSUInteger, attribute: Option<&VertexAttributeDescriptorRef>, )
Trait Implementations§
source§impl AsMut<VertexAttributeDescriptorArrayRef> for VertexAttributeDescriptorArray
impl AsMut<VertexAttributeDescriptorArrayRef> for VertexAttributeDescriptorArray
source§fn as_mut(&mut self) -> &mut VertexAttributeDescriptorArrayRef
fn as_mut(&mut self) -> &mut VertexAttributeDescriptorArrayRef
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsRef<VertexAttributeDescriptorArrayRef> for VertexAttributeDescriptorArray
impl AsRef<VertexAttributeDescriptorArrayRef> for VertexAttributeDescriptorArray
source§fn as_ref(&self) -> &VertexAttributeDescriptorArrayRef
fn as_ref(&self) -> &VertexAttributeDescriptorArrayRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<VertexAttributeDescriptorArrayRef> for VertexAttributeDescriptorArray
impl Borrow<VertexAttributeDescriptorArrayRef> for VertexAttributeDescriptorArray
source§fn borrow(&self) -> &VertexAttributeDescriptorArrayRef
fn borrow(&self) -> &VertexAttributeDescriptorArrayRef
Immutably borrows from an owned value. Read more
source§impl BorrowMut<VertexAttributeDescriptorArrayRef> for VertexAttributeDescriptorArray
impl BorrowMut<VertexAttributeDescriptorArrayRef> for VertexAttributeDescriptorArray
source§fn borrow_mut(&mut self) -> &mut VertexAttributeDescriptorArrayRef
fn borrow_mut(&mut self) -> &mut VertexAttributeDescriptorArrayRef
Mutably borrows from an owned value. Read more
source§impl Clone for VertexAttributeDescriptorArray
impl Clone for VertexAttributeDescriptorArray
source§fn clone(&self) -> VertexAttributeDescriptorArray
fn clone(&self) -> VertexAttributeDescriptorArray
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 Deref for VertexAttributeDescriptorArray
impl Deref for VertexAttributeDescriptorArray
§type Target = VertexAttributeDescriptorArrayRef
type Target = VertexAttributeDescriptorArrayRef
The resulting type after dereferencing.
source§fn deref(&self) -> &VertexAttributeDescriptorArrayRef
fn deref(&self) -> &VertexAttributeDescriptorArrayRef
Dereferences the value.
source§impl DerefMut for VertexAttributeDescriptorArray
impl DerefMut for VertexAttributeDescriptorArray
source§fn deref_mut(&mut self) -> &mut VertexAttributeDescriptorArrayRef
fn deref_mut(&mut self) -> &mut VertexAttributeDescriptorArrayRef
Mutably dereferences the value.
source§impl ForeignType for VertexAttributeDescriptorArray
impl ForeignType for VertexAttributeDescriptorArray
§type CType = MTLVertexAttributeDescriptorArray
type CType = MTLVertexAttributeDescriptorArray
The raw C type.
§type Ref = VertexAttributeDescriptorArrayRef
type Ref = VertexAttributeDescriptorArrayRef
The type representing a reference to this type.
source§unsafe fn from_ptr(
ptr: *mut MTLVertexAttributeDescriptorArray,
) -> VertexAttributeDescriptorArray
unsafe fn from_ptr( ptr: *mut MTLVertexAttributeDescriptorArray, ) -> VertexAttributeDescriptorArray
Constructs an instance of this type from its raw type. Read more
source§fn as_ptr(&self) -> *mut MTLVertexAttributeDescriptorArray
fn as_ptr(&self) -> *mut MTLVertexAttributeDescriptorArray
Returns a raw pointer to the wrapped value.
impl Send for VertexAttributeDescriptorArray
impl Sync for VertexAttributeDescriptorArray
Auto Trait Implementations§
impl Freeze for VertexAttributeDescriptorArray
impl RefUnwindSafe for VertexAttributeDescriptorArray
impl Unpin for VertexAttributeDescriptorArray
impl UnwindSafe for VertexAttributeDescriptorArray
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)