Struct cranelift_wasm::wasmparser::Import
source · pub struct Import<'a> {
pub module: &'a str,
pub name: &'a str,
pub ty: TypeRef,
}
Expand description
Represents an import in a WebAssembly module.
Fields§
§module: &'a str
The module being imported from.
name: &'a str
The name of the imported item.
ty: TypeRef
The type of the imported item.
Trait Implementations§
source§impl<'a> FromReader<'a> for Import<'a>
impl<'a> FromReader<'a> for Import<'a>
source§fn from_reader(
reader: &mut BinaryReader<'a>
) -> Result<Import<'a>, BinaryReaderError>
fn from_reader( reader: &mut BinaryReader<'a> ) -> Result<Import<'a>, BinaryReaderError>
Attempts to read
Self
from the provided binary reader, returning an
error if it is unable to do so.