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