pub struct BufferLayoutDescriptorArray(/* private fields */);Expand description
An array of buffer layout descriptors.
C++ equivalent: MTL::BufferLayoutDescriptorArray
Implementations§
Source§impl BufferLayoutDescriptorArray
impl BufferLayoutDescriptorArray
Sourcepub fn object_at(&self, index: UInteger) -> Option<BufferLayoutDescriptor>
pub fn object_at(&self, index: UInteger) -> Option<BufferLayoutDescriptor>
Get the descriptor at the specified index.
C++ equivalent: BufferLayoutDescriptor* object(NS::UInteger index)
Sourcepub fn set_object_at(
&self,
descriptor: &BufferLayoutDescriptor,
index: UInteger,
)
pub fn set_object_at( &self, descriptor: &BufferLayoutDescriptor, index: UInteger, )
Set the descriptor at the specified index.
C++ equivalent: void setObject(const BufferLayoutDescriptor*, NS::UInteger)
Trait Implementations§
Source§impl Clone for BufferLayoutDescriptorArray
impl Clone for BufferLayoutDescriptorArray
Source§impl Drop for BufferLayoutDescriptorArray
impl Drop for BufferLayoutDescriptorArray
Source§impl Referencing for BufferLayoutDescriptorArray
impl Referencing for BufferLayoutDescriptorArray
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 BufferLayoutDescriptorArray
impl Sync for BufferLayoutDescriptorArray
Auto Trait Implementations§
impl Freeze for BufferLayoutDescriptorArray
impl RefUnwindSafe for BufferLayoutDescriptorArray
impl Unpin for BufferLayoutDescriptorArray
impl UnwindSafe for BufferLayoutDescriptorArray
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