wasmtime_environ::wasmparser

Type Alias InstanceSectionReader

Source
pub type InstanceSectionReader<'a> = SectionLimited<'a, Instance<'a>>;
Expand description

A reader for the core instance section of a WebAssembly component.

§Examples

use wasmparser::{InstanceSectionReader, BinaryReader, WasmFeatures};
let reader = BinaryReader::new(data, 0, WasmFeatures::all());
let mut reader = InstanceSectionReader::new(reader).unwrap();
for inst in reader {
    println!("Instance {:?}", inst.expect("instance"));
}

Aliased Type§

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