Struct wasmparser::types::ModuleType
source · pub struct ModuleType {
pub imports: HashMap<(String, String), EntityType>,
pub exports: HashMap<String, EntityType>,
/* private fields */
}
Expand description
Represents a module type.
Fields§
§imports: HashMap<(String, String), EntityType>
The imports of the module type.
exports: HashMap<String, EntityType>
The exports of the module type.
Implementations§
source§impl ModuleType
impl ModuleType
sourcepub fn lookup_import(&self, module: &str, name: &str) -> Option<&EntityType>
pub fn lookup_import(&self, module: &str, name: &str) -> Option<&EntityType>
Looks up an import by its module and name.
Returns None
if the import was not found.
Trait Implementations§
source§impl Clone for ModuleType
impl Clone for ModuleType
source§fn clone(&self) -> ModuleType
fn clone(&self) -> ModuleType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more