[−][src]Struct mtots_core::NativeModule
Implementations
impl NativeModule
[src]
pub fn new<N, F>(name: N, f: F) -> Self where
N: Into<RcStr>,
F: FnOnce(&mut NativeModuleBuilder) + 'static,
[src]
N: Into<RcStr>,
F: FnOnce(&mut NativeModuleBuilder) + 'static,
pub fn name(&self) -> &RcStr
[src]
pub fn data(self, globals: &mut Globals) -> NativeModuleData
[src]
Trait Implementations
impl From<NativeModule> for GlobalElement
[src]
fn from(nm: NativeModule) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for NativeModule
impl !Send for NativeModule
impl !Sync for NativeModule
impl Unpin for NativeModule
impl !UnwindSafe for NativeModule
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,