pub struct LogStateDescriptor(/* private fields */);Expand description
Descriptor for creating a log state.
C++ equivalent: MTL::LogStateDescriptor
Implementations§
Source§impl LogStateDescriptor
impl LogStateDescriptor
Sourcepub fn alloc() -> Option<Self>
pub fn alloc() -> Option<Self>
Allocate a new log state descriptor.
C++ equivalent: static LogStateDescriptor* alloc()
Sourcepub fn init(&self) -> Option<Self>
pub fn init(&self) -> Option<Self>
Initialize an allocated descriptor.
C++ equivalent: LogStateDescriptor* init()
Sourcepub fn buffer_size(&self) -> UInteger
pub fn buffer_size(&self) -> UInteger
Get the buffer size.
C++ equivalent: NS::UInteger bufferSize() const
Sourcepub fn set_buffer_size(&self, size: UInteger)
pub fn set_buffer_size(&self, size: UInteger)
Set the buffer size.
C++ equivalent: void setBufferSize(NS::UInteger)
Trait Implementations§
Source§impl Clone for LogStateDescriptor
impl Clone for LogStateDescriptor
Source§impl Debug for LogStateDescriptor
impl Debug for LogStateDescriptor
Source§impl Default for LogStateDescriptor
impl Default for LogStateDescriptor
Source§impl Drop for LogStateDescriptor
impl Drop for LogStateDescriptor
Source§impl Referencing for LogStateDescriptor
impl Referencing for LogStateDescriptor
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 LogStateDescriptor
impl Sync for LogStateDescriptor
Auto Trait Implementations§
impl Freeze for LogStateDescriptor
impl RefUnwindSafe for LogStateDescriptor
impl Unpin for LogStateDescriptor
impl UnwindSafe for LogStateDescriptor
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