pub struct ResidencySetDescriptor(/* private fields */);Expand description
Descriptor for creating a residency set.
C++ equivalent: MTL::ResidencySetDescriptor
Implementations§
Source§impl ResidencySetDescriptor
impl ResidencySetDescriptor
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new residency set descriptor.
C++ equivalent: ResidencySetDescriptor* alloc()->init()
Sourcepub fn initial_capacity(&self) -> UInteger
pub fn initial_capacity(&self) -> UInteger
Get the initial capacity.
C++ equivalent: NS::UInteger initialCapacity() const
Sourcepub fn set_initial_capacity(&self, capacity: UInteger)
pub fn set_initial_capacity(&self, capacity: UInteger)
Set the initial capacity.
C++ equivalent: void setInitialCapacity(NS::UInteger)
Trait Implementations§
Source§impl Clone for ResidencySetDescriptor
impl Clone for ResidencySetDescriptor
Source§impl Default for ResidencySetDescriptor
impl Default for ResidencySetDescriptor
Source§impl Drop for ResidencySetDescriptor
impl Drop for ResidencySetDescriptor
Source§impl Referencing for ResidencySetDescriptor
impl Referencing for ResidencySetDescriptor
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 ResidencySetDescriptor
impl Sync for ResidencySetDescriptor
Auto Trait Implementations§
impl Freeze for ResidencySetDescriptor
impl RefUnwindSafe for ResidencySetDescriptor
impl Unpin for ResidencySetDescriptor
impl UnwindSafe for ResidencySetDescriptor
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