pub struct BinaryFunctionDescriptor(/* private fields */);Expand description
Descriptor for creating a binary function.
C++ equivalent: MTL4::BinaryFunctionDescriptor
Implementations§
Source§impl BinaryFunctionDescriptor
impl BinaryFunctionDescriptor
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a BinaryFunctionDescriptor from a raw pointer.
Sourcepub fn set_name(&self, name: &str)
pub fn set_name(&self, name: &str)
Set the name.
C++ equivalent: void setName(const NS::String*)
Sourcepub fn function_descriptor(&self) -> Option<FunctionDescriptor>
pub fn function_descriptor(&self) -> Option<FunctionDescriptor>
Get the function descriptor.
C++ equivalent: FunctionDescriptor* functionDescriptor() const
Sourcepub fn set_function_descriptor(&self, descriptor: &FunctionDescriptor)
pub fn set_function_descriptor(&self, descriptor: &FunctionDescriptor)
Set the function descriptor.
C++ equivalent: void setFunctionDescriptor(const MTL4::FunctionDescriptor*)
Sourcepub fn options(&self) -> BinaryFunctionOptions
pub fn options(&self) -> BinaryFunctionOptions
Get the options.
C++ equivalent: BinaryFunctionOptions options() const
Sourcepub fn set_options(&self, options: BinaryFunctionOptions)
pub fn set_options(&self, options: BinaryFunctionOptions)
Set the options.
C++ equivalent: void setOptions(MTL4::BinaryFunctionOptions)
Trait Implementations§
Source§impl Clone for BinaryFunctionDescriptor
impl Clone for BinaryFunctionDescriptor
Source§impl Debug for BinaryFunctionDescriptor
impl Debug for BinaryFunctionDescriptor
Source§impl Drop for BinaryFunctionDescriptor
impl Drop for BinaryFunctionDescriptor
Source§impl Referencing for BinaryFunctionDescriptor
impl Referencing for BinaryFunctionDescriptor
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 BinaryFunctionDescriptor
impl Sync for BinaryFunctionDescriptor
Auto Trait Implementations§
impl Freeze for BinaryFunctionDescriptor
impl RefUnwindSafe for BinaryFunctionDescriptor
impl Unpin for BinaryFunctionDescriptor
impl UnwindSafe for BinaryFunctionDescriptor
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