pub struct ModuleMetadata {
pub import_encodings: EncodingMap,
pub export_encodings: EncodingMap,
}
Expand description
Module-level metadata that’s specific to one core WebAssembly module. This
is extracted with a Bindgen
.
Fields§
§import_encodings: EncodingMap
Per-function options imported into the core wasm module, currently only related to string encoding.
export_encodings: EncodingMap
Per-function options exported from the core wasm module, currently only related to string encoding.
Implementations§
Source§impl ModuleMetadata
impl ModuleMetadata
Sourcepub fn new(
resolve: &Resolve,
world: WorldId,
encoding: StringEncoding,
) -> ModuleMetadata
pub fn new( resolve: &Resolve, world: WorldId, encoding: StringEncoding, ) -> ModuleMetadata
Creates a new ModuleMetadata
instance holding the given set of
interfaces which are expected to all use the encoding
specified.
Trait Implementations§
Source§impl Default for ModuleMetadata
impl Default for ModuleMetadata
Source§fn default() -> ModuleMetadata
fn default() -> ModuleMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModuleMetadata
impl RefUnwindSafe for ModuleMetadata
impl Send for ModuleMetadata
impl Sync for ModuleMetadata
impl Unpin for ModuleMetadata
impl UnwindSafe for ModuleMetadata
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