pub struct DynamicLibrary(/* private fields */);Expand description
A dynamic Metal library that can be loaded at runtime.
C++ equivalent: MTL::DynamicLibrary
Dynamic libraries allow you to load Metal shader code at runtime and link functions dynamically.
Implementations§
Source§impl DynamicLibrary
impl DynamicLibrary
Sourcepub fn device(&self) -> Device
pub fn device(&self) -> Device
Get the device that created this dynamic library.
C++ equivalent: Device* device() const
Sourcepub fn label(&self) -> Option<String>
pub fn label(&self) -> Option<String>
Get the label for this dynamic library.
C++ equivalent: NS::String* label() const
Sourcepub fn set_label(&self, label: &str)
pub fn set_label(&self, label: &str)
Set the label for this dynamic library.
C++ equivalent: void setLabel(const NS::String*)
Sourcepub fn install_name(&self) -> Option<String>
pub fn install_name(&self) -> Option<String>
Get the install name for this dynamic library.
C++ equivalent: NS::String* installName() const
Trait Implementations§
Source§impl Clone for DynamicLibrary
impl Clone for DynamicLibrary
Source§impl Debug for DynamicLibrary
impl Debug for DynamicLibrary
Source§impl Drop for DynamicLibrary
impl Drop for DynamicLibrary
Source§impl Referencing for DynamicLibrary
impl Referencing for DynamicLibrary
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 DynamicLibrary
impl Sync for DynamicLibrary
Auto Trait Implementations§
impl Freeze for DynamicLibrary
impl RefUnwindSafe for DynamicLibrary
impl Unpin for DynamicLibrary
impl UnwindSafe for DynamicLibrary
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