Struct Module
#[repr(transparent)]
pub struct Module { /* private fields */ }
A WebAssembly.Module object contains stateless WebAssembly code
that has already been compiled by the browser and can be
efficiently shared with Workers, and instantiated multiple times.
Implementations
impl Module
fn custom_sections(module: &Module, sectionName: &str) -> ArrayThe
WebAssembly.customSections()function returns a copy of the contents of all custom sections in the given module with the given string name.
impl Module
fn exports(module: &Module) -> ArrayThe
WebAssembly.exports()function returns an array containing descriptions of all the declared exports of the givenModule.
impl Module
fn new(buffer_source: &JsValue) -> Result<Module, JsValue>A
WebAssembly.Moduleobject contains stateless WebAssembly code that has already been compiled by the browser and can be efficiently shared with Workers, and instantiated multiple times.
impl Module
fn imports(module: &Module) -> ArrayThe
WebAssembly.imports()function returns an array containing descriptions of all the declared imports of the givenModule.
Trait Implementations
impl AsRef<JsValue> for Module
fn as_ref(&self) -> &JsValue
impl AsRef<Module> for Module
fn as_ref(&self) -> &Module
impl AsRef<Object> for Module
fn as_ref(&self) -> &Object
impl Clone for Module
fn clone(&self) -> Self
impl Debug for Module
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Deref for Module
type Target = Object;fn deref(&self) -> &Object
impl Eq for Module
impl ErasableGeneric for Module
type Repr = JsValue;
impl From<JsValue> for Module
fn from(obj: JsValue) -> Self
impl FromWasmAbi for Module
type Abi = <JsValue as FromWasmAbi>::Abi;unsafe fn from_abi(js: Self::Abi) -> Self
impl IntoJsGeneric for Module
where
Module: JsGeneric,
type JsCanon = Module;fn to_js(self) -> Module
impl IntoWasmAbi for Module
type Abi = <JsValue as IntoWasmAbi>::Abi;fn into_abi(self) -> Self::Abi
impl JsCast for Module
fn instanceof(val: &JsValue) -> boolfn unchecked_from_js(val: JsValue) -> Selffn unchecked_from_js_ref(val: &JsValue) -> &Self
impl LongRefFromWasmAbi for Module
type Abi = <JsValue as LongRefFromWasmAbi>::Abi;type Anchor = Module;unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
impl OptionFromWasmAbi for Module
fn is_none(abi: &Self::Abi) -> bool
impl OptionIntoWasmAbi for Module
fn none() -> Self::Abi
impl PartialEq for Module
fn eq(&self, other: &Self) -> bool
impl Promising for Module
type Resolution = Module;
impl RefFromWasmAbi for Module
type Abi = <JsValue as RefFromWasmAbi>::Abi;type Anchor = ManuallyDrop<Module>;unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
impl StructuralPartialEq for Module
impl UpcastFrom<Module> for Module
impl WasmDescribe for Module
fn describe()