pub struct NativeClassLib { /* private fields */ }Expand description
Lib that registers a host-defined NativeClass, its constructor, optional
constructor and instance shapes, and its member functions.
Implementations§
Source§impl NativeClassLib
impl NativeClassLib
Sourcepub fn from_class(
lib_symbol: Symbol,
class: &NativeClass,
version: impl Into<String>,
) -> Self
pub fn from_class( lib_symbol: Symbol, class: &NativeClass, version: impl Into<String>, ) -> Self
Builds the lib from a native class, lib symbol, and version string.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for NativeClassLib
impl !UnwindSafe for NativeClassLib
impl Freeze for NativeClassLib
impl Send for NativeClassLib
impl Sync for NativeClassLib
impl Unpin for NativeClassLib
impl UnsafeUnpin for NativeClassLib
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