Struct wasmparser::ProducersFieldValuesReader
source · pub struct ProducersFieldValuesReader<'a> { /* private fields */ }
Expand description
A reader for fields in the producers custom section.
Implementations§
source§impl<'a> ProducersFieldValuesReader<'a>
impl<'a> ProducersFieldValuesReader<'a>
sourcepub fn original_position(&self) -> usize
pub fn original_position(&self) -> usize
Gets the original position of the reader.
sourcepub fn read<'b>(&mut self) -> Result<ProducersFieldValue<'b>>where
'a: 'b,
pub fn read<'b>(&mut self) -> Result<ProducersFieldValue<'b>>where
'a: 'b,
Reads a field from the reader.
Trait Implementations§
source§impl<'a> IntoIterator for ProducersFieldValuesReader<'a>
impl<'a> IntoIterator for ProducersFieldValuesReader<'a>
§type Item = Result<ProducersFieldValue<'a>, BinaryReaderError>
type Item = Result<ProducersFieldValue<'a>, BinaryReaderError>
The type of the elements being iterated over.
§type IntoIter = ProducersFieldValuesIterator<'a>
type IntoIter = ProducersFieldValuesIterator<'a>
Which kind of iterator are we turning this into?