pub struct AttributeDescriptorArray(/* private fields */);Expand description
An array of attribute descriptors.
C++ equivalent: MTL::AttributeDescriptorArray
Implementations§
Source§impl AttributeDescriptorArray
impl AttributeDescriptorArray
Sourcepub fn object_at(&self, index: UInteger) -> Option<AttributeDescriptor>
pub fn object_at(&self, index: UInteger) -> Option<AttributeDescriptor>
Get the descriptor at the specified index.
C++ equivalent: AttributeDescriptor* object(NS::UInteger index)
Sourcepub fn set_object_at(&self, descriptor: &AttributeDescriptor, index: UInteger)
pub fn set_object_at(&self, descriptor: &AttributeDescriptor, index: UInteger)
Set the descriptor at the specified index.
C++ equivalent: void setObject(const AttributeDescriptor*, NS::UInteger)
Trait Implementations§
Source§impl Clone for AttributeDescriptorArray
impl Clone for AttributeDescriptorArray
Source§impl Drop for AttributeDescriptorArray
impl Drop for AttributeDescriptorArray
Source§impl Referencing for AttributeDescriptorArray
impl Referencing for AttributeDescriptorArray
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> usize
fn retain_count(&self) -> usize
Get the retain count of the object. Read more
impl Send for AttributeDescriptorArray
impl Sync for AttributeDescriptorArray
Auto Trait Implementations§
impl Freeze for AttributeDescriptorArray
impl RefUnwindSafe for AttributeDescriptorArray
impl Unpin for AttributeDescriptorArray
impl UnwindSafe for AttributeDescriptorArray
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