pub struct ModuleMetadata {
    pub import_encodings: IndexMap<(String, String), StringEncoding>,
    pub export_encodings: IndexMap<String, StringEncoding>,
}
Expand description

Module-level metadata that’s specific to one core WebAssembly module. This is extracted with a Bindgen.

Fields§

§import_encodings: IndexMap<(String, String), StringEncoding>

Per-function options imported into the core wasm module, currently only related to string encoding.

§export_encodings: IndexMap<String, StringEncoding>

Per-function options exported from the core wasm module, currently only related to string encoding.

Implementations§

Creates a new ModuleMetadata instance holding the given set of interfaces which are expected to all use the encoding specified.

Trait Implementations§

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.