pub struct IOScratchBufferAllocator(/* private fields */);Expand description
Allocator for IO scratch buffers.
C++ equivalent: MTL::IOScratchBufferAllocator
Implementations§
Source§impl IOScratchBufferAllocator
impl IOScratchBufferAllocator
Sourcepub fn new_scratch_buffer(
&self,
minimum_size: UInteger,
) -> Option<IOScratchBuffer>
pub fn new_scratch_buffer( &self, minimum_size: UInteger, ) -> Option<IOScratchBuffer>
Create a new scratch buffer with the specified minimum size.
C++ equivalent: IOScratchBuffer* newScratchBuffer(NS::UInteger)
Trait Implementations§
Source§impl Clone for IOScratchBufferAllocator
impl Clone for IOScratchBufferAllocator
Source§impl Drop for IOScratchBufferAllocator
impl Drop for IOScratchBufferAllocator
Source§impl Referencing for IOScratchBufferAllocator
impl Referencing for IOScratchBufferAllocator
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 IOScratchBufferAllocator
impl Sync for IOScratchBufferAllocator
Auto Trait Implementations§
impl Freeze for IOScratchBufferAllocator
impl RefUnwindSafe for IOScratchBufferAllocator
impl Unpin for IOScratchBufferAllocator
impl UnwindSafe for IOScratchBufferAllocator
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