Struct wasmtime_environ::wasmparser::TableSectionReader [−][src]
pub struct TableSectionReader<'a> { /* fields omitted */ }
Implementations
pub fn new(
data: &'a [u8],
offset: usize
) -> Result<TableSectionReader<'a>, BinaryReaderError>
Reads content of the table section.
Examples
use wasmparser::TableSectionReader;
let mut table_reader = TableSectionReader::new(data, 0).unwrap();
for _ in 0..table_reader.get_count() {
let table = table_reader.read().expect("table");
println!("Table: {:?}", table);
}
Trait Implementations
type Item = Result<TableType, BinaryReaderError>
type Item = Result<TableType, BinaryReaderError>
The type of the elements being iterated over.
type IntoIter = SectionIteratorLimited<TableSectionReader<'a>>
type IntoIter = SectionIteratorLimited<TableSectionReader<'a>>
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
pub fn read(
&mut self
) -> Result<<TableSectionReader<'a> as SectionReader>::Item, BinaryReaderError>
Auto Trait Implementations
impl<'a> RefUnwindSafe for TableSectionReader<'a>
impl<'a> Send for TableSectionReader<'a>
impl<'a> Sync for TableSectionReader<'a>
impl<'a> Unpin for TableSectionReader<'a>
impl<'a> UnwindSafe for TableSectionReader<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more