pub struct TypeSectionReader<'a> { /* private fields */ }

Implementations

Reads content of the type section.

Examples
use wasmparser::ModuleReader;
let mut reader = ModuleReader::new(data).expect("module reader");
let section = reader.read().expect("section");
let mut type_reader = section.get_type_section_reader().expect("type section reader");
for _ in 0..type_reader.get_count() {
    let ty = type_reader.read().expect("type");
    println!("Type {:?}", ty);
}

Trait Implementations

Implements iterator over the type section.

Examples
use wasmparser::ModuleReader;
use wasmparser::{Result, FuncType};
let mut reader = ModuleReader::new(data).expect("module reader");
let section = reader.read().expect("section");
let mut type_reader = section.get_type_section_reader().expect("type section reader");
for ty in type_reader {
    println!("Type {:?}", ty);
}
The type of the elements being iterated over.
Which kind of iterator are we turning this into?

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.