Struct cranelift_wasm::wasmparser::Import
source · Expand description
Represents an import in a WebAssembly module.
Fields§
§module: &'a strThe module being imported from.
name: &'a strThe name of the imported item.
ty: TypeRefThe 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. Read more