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