Struct webc::v2::read::StreamingReader   
source · pub struct StreamingReader<R> { /* private fields */ }Expand description
A reader which can parse a WEBC file from an arbitrary Read object.
Implementations§
source§impl<R: Read> StreamingReader<R>
 
impl<R: Read> StreamingReader<R>
pub fn new(reader: R) -> Result<Self, StreamingReaderError>
sourcepub fn sections(
    self
) -> impl Iterator<Item = Result<Section, StreamingReaderError>>
 
pub fn sections( self ) -> impl Iterator<Item = Result<Section, StreamingReaderError>>
Iterate over all the sections in this WEBC file.
sourcepub fn sections_with_offsets(
    self
) -> impl Iterator<Item = Result<(Section, Span), StreamingReaderError>>
 
pub fn sections_with_offsets( self ) -> impl Iterator<Item = Result<(Section, Span), StreamingReaderError>>
Iterate over all the sections in this WEBC file, and their offsets.