Struct wasmparser::MemorySectionReader [−][src]
pub struct MemorySectionReader<'a> { /* fields omitted */ }
Implementations
Reads content of the memory section.
Examples
use wasmparser::MemorySectionReader;
let mut memory_reader = MemorySectionReader::new(data, 0).unwrap();
for _ in 0..memory_reader.get_count() {
let memory = memory_reader.read().expect("memory");
println!("Memory: {:?}", memory);
}
Trait Implementations
type Item = Result<MemoryType>
type Item = Result<MemoryType>
The type of the elements being iterated over.
type IntoIter = SectionIteratorLimited<MemorySectionReader<'a>>
type IntoIter = SectionIteratorLimited<MemorySectionReader<'a>>
Which kind of iterator are we turning this into?
Auto Trait Implementations
impl<'a> RefUnwindSafe for MemorySectionReader<'a>
impl<'a> Send for MemorySectionReader<'a>
impl<'a> Sync for MemorySectionReader<'a>
impl<'a> Unpin for MemorySectionReader<'a>
impl<'a> UnwindSafe for MemorySectionReader<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more