pub struct BinaryFunction(/* private fields */);Expand description
A compiled binary function for linking.
C++ equivalent: MTL4::BinaryFunction
BinaryFunction represents a precompiled function that can be linked with pipelines at runtime.
Implementations§
Source§impl BinaryFunction
impl BinaryFunction
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a BinaryFunction from a raw pointer.
Sourcepub fn function_type(&self) -> FunctionType
pub fn function_type(&self) -> FunctionType
Get the function type.
C++ equivalent: MTL::FunctionType functionType() const
Trait Implementations§
Source§impl Clone for BinaryFunction
impl Clone for BinaryFunction
Source§impl Debug for BinaryFunction
impl Debug for BinaryFunction
Source§impl Drop for BinaryFunction
impl Drop for BinaryFunction
Source§impl Referencing for BinaryFunction
impl Referencing for BinaryFunction
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 BinaryFunction
impl Sync for BinaryFunction
Auto Trait Implementations§
impl Freeze for BinaryFunction
impl RefUnwindSafe for BinaryFunction
impl Unpin for BinaryFunction
impl UnwindSafe for BinaryFunction
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