wasmtime_environ::wasmparser

Type Alias ComponentImportSectionReader

source
pub type ComponentImportSectionReader<'a> = SectionLimited<'a, ComponentImport<'a>>;
Expand description

A reader for the import section of a WebAssembly component.

§Examples

use wasmparser::{ComponentImportSectionReader, BinaryReader, WasmFeatures};
let data: &[u8] = &[0x01, 0x00, 0x01, 0x41, 0x01, 0x66];
let reader = BinaryReader::new(data, 0, WasmFeatures::all());
let reader = ComponentImportSectionReader::new(reader).unwrap();
for import in reader {
    let import = import.expect("import");
    println!("Import: {:?}", import);
}

Aliased Type§

struct ComponentImportSectionReader<'a> { /* private fields */ }