Struct wit_component::metadata::ModuleMetadata
source · 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§
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