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