[][src]Struct node_sys::Module

#[repr(transparent)]
pub struct Module { /* fields omitted */ }

Methods

impl Module[src]

pub fn children(&self) -> Array[src]

impl Module[src]

pub fn exports(&self) -> Object[src]

impl Module[src]

pub fn filename(&self) -> JsString[src]

impl Module[src]

pub fn id(&self) -> JsString[src]

impl Module[src]

pub fn loaded(&self) -> bool[src]

impl Module[src]

pub fn parent(&self) -> Module[src]

impl Module[src]

pub fn paths(&self) -> Array[src]

impl Module[src]

pub fn require(&self, id: &JsString) -> JsValue[src]

Trait Implementations

impl AsRef<JsValue> for Module[src]

impl AsRef<Module> for Module[src]

impl AsRef<Object> for Module[src]

impl Clone for Module[src]

impl Debug for Module[src]

impl Deref for Module[src]

type Target = Object

The resulting type after dereferencing.

impl From<JsValue> for Module[src]

impl From<Module> for JsValue[src]

impl From<Module> for Object[src]

impl FromWasmAbi for Module[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for Module[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a Module[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for Module[src]

impl OptionFromWasmAbi for Module[src]

impl OptionIntoWasmAbi for Module[src]

impl<'a> OptionIntoWasmAbi for &'a Module[src]

impl RefFromWasmAbi for Module[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<Module>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl WasmDescribe for Module[src]

Auto Trait Implementations

impl RefUnwindSafe for Module

impl !Send for Module

impl !Sync for Module

impl Unpin for Module

impl UnwindSafe for Module

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.