pub struct LinkedFunctions(/* private fields */);Expand description
A collection of functions to link together.
C++ equivalent: MTL::LinkedFunctions
Linked functions allow you to specify a set of functions that should be available for function pointers and callable from other functions.
Implementations§
Source§impl LinkedFunctions
impl LinkedFunctions
Sourcepub fn alloc() -> Option<Self>
pub fn alloc() -> Option<Self>
Allocate a new linked functions object.
C++ equivalent: static LinkedFunctions* alloc()
Sourcepub fn init(&self) -> Option<Self>
pub fn init(&self) -> Option<Self>
Initialize an allocated linked functions object.
C++ equivalent: LinkedFunctions* init()
Sourcepub fn linked_functions() -> Option<Self>
pub fn linked_functions() -> Option<Self>
Create linked functions using the factory method.
C++ equivalent: static LinkedFunctions* linkedFunctions()
Sourcepub fn functions_raw(&self) -> *mut c_void
pub fn functions_raw(&self) -> *mut c_void
Get the functions array (raw NSArray pointer).
C++ equivalent: NS::Array* functions() const
Sourcepub fn set_functions_raw(&self, functions: *const c_void)
pub fn set_functions_raw(&self, functions: *const c_void)
Set the functions array.
C++ equivalent: void setFunctions(const NS::Array*)
Sourcepub fn binary_functions_raw(&self) -> *mut c_void
pub fn binary_functions_raw(&self) -> *mut c_void
Get the binary functions array (raw NSArray pointer).
C++ equivalent: NS::Array* binaryFunctions() const
Sourcepub fn set_binary_functions_raw(&self, functions: *const c_void)
pub fn set_binary_functions_raw(&self, functions: *const c_void)
Set the binary functions array.
C++ equivalent: void setBinaryFunctions(const NS::Array*)
Sourcepub fn private_functions_raw(&self) -> *mut c_void
pub fn private_functions_raw(&self) -> *mut c_void
Get the private functions array (raw NSArray pointer).
C++ equivalent: NS::Array* privateFunctions() const
Sourcepub fn set_private_functions_raw(&self, functions: *const c_void)
pub fn set_private_functions_raw(&self, functions: *const c_void)
Set the private functions array.
C++ equivalent: void setPrivateFunctions(const NS::Array*)
Sourcepub fn groups_raw(&self) -> *mut c_void
pub fn groups_raw(&self) -> *mut c_void
Get the function groups dictionary (raw NSDictionary pointer).
C++ equivalent: NS::Dictionary* groups() const
Sourcepub fn set_groups_raw(&self, groups: *const c_void)
pub fn set_groups_raw(&self, groups: *const c_void)
Set the function groups dictionary.
C++ equivalent: void setGroups(const NS::Dictionary*)