pub struct VisibleFunctionTableDescriptor(/* private fields */);Expand description
A descriptor for creating a visible function table.
C++ equivalent: MTL::VisibleFunctionTableDescriptor
Implementations§
Source§impl VisibleFunctionTableDescriptor
impl VisibleFunctionTableDescriptor
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new visible function table descriptor.
C++ equivalent: static VisibleFunctionTableDescriptor* alloc()->init()
Sourcepub fn visible_function_table_descriptor() -> Option<Self>
pub fn visible_function_table_descriptor() -> Option<Self>
Create a new visible function table descriptor using the class method.
C++ equivalent: static VisibleFunctionTableDescriptor* visibleFunctionTableDescriptor()
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a VisibleFunctionTableDescriptor from a raw pointer.
§Safety
The pointer must be a valid Metal visible function table descriptor object.
Sourcepub fn function_count(&self) -> UInteger
pub fn function_count(&self) -> UInteger
Get the number of functions in the table.
C++ equivalent: NS::UInteger functionCount() const
Sourcepub fn set_function_count(&self, function_count: UInteger)
pub fn set_function_count(&self, function_count: UInteger)
Set the number of functions in the table.
C++ equivalent: void setFunctionCount(NS::UInteger functionCount)
Trait Implementations§
Source§impl Referencing for VisibleFunctionTableDescriptor
impl Referencing for VisibleFunctionTableDescriptor
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 VisibleFunctionTableDescriptor
impl Sync for VisibleFunctionTableDescriptor
Auto Trait Implementations§
impl Freeze for VisibleFunctionTableDescriptor
impl RefUnwindSafe for VisibleFunctionTableDescriptor
impl Unpin for VisibleFunctionTableDescriptor
impl UnwindSafe for VisibleFunctionTableDescriptor
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