pub struct FunctionStitchingFunctionNode(/* private fields */);Expand description
A function node in a function stitching graph.
C++ equivalent: MTL::FunctionStitchingFunctionNode
Implementations§
Source§impl FunctionStitchingFunctionNode
impl FunctionStitchingFunctionNode
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new function node.
C++ equivalent: FunctionStitchingFunctionNode* alloc()->init()
Sourcepub fn name(&self) -> Option<String>
pub fn name(&self) -> Option<String>
Get the name of the function.
C++ equivalent: NS::String* name() const
Sourcepub fn set_name(&self, name: &str)
pub fn set_name(&self, name: &str)
Set the name of the function.
C++ equivalent: void setName(const NS::String*)
Sourcepub fn arguments_ptr(&self) -> *const c_void
pub fn arguments_ptr(&self) -> *const c_void
Get the arguments as a raw NS::Array pointer.
C++ equivalent: NS::Array* arguments() const
Sourcepub fn set_arguments_ptr(&self, arguments: *const c_void)
pub fn set_arguments_ptr(&self, arguments: *const c_void)
Set the arguments.
C++ equivalent: void setArguments(const NS::Array*)
Sourcepub fn control_dependencies_ptr(&self) -> *const c_void
pub fn control_dependencies_ptr(&self) -> *const c_void
Get the control dependencies as a raw NS::Array pointer.
C++ equivalent: NS::Array* controlDependencies() const
Sourcepub fn set_control_dependencies_ptr(&self, control_dependencies: *const c_void)
pub fn set_control_dependencies_ptr(&self, control_dependencies: *const c_void)
Set the control dependencies.
C++ equivalent: void setControlDependencies(const NS::Array*)
Trait Implementations§
Source§impl Drop for FunctionStitchingFunctionNode
impl Drop for FunctionStitchingFunctionNode
Source§impl Referencing for FunctionStitchingFunctionNode
impl Referencing for FunctionStitchingFunctionNode
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 FunctionStitchingFunctionNode
impl Sync for FunctionStitchingFunctionNode
Auto Trait Implementations§
impl Freeze for FunctionStitchingFunctionNode
impl RefUnwindSafe for FunctionStitchingFunctionNode
impl Unpin for FunctionStitchingFunctionNode
impl UnwindSafe for FunctionStitchingFunctionNode
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