pub struct WorkingStreamingParser<R: BufRead> { /* private fields */ }
Expand description
Working streaming parser with real functionality
Implementations§
Source§impl<R: BufRead> WorkingStreamingParser<R>
impl<R: BufRead> WorkingStreamingParser<R>
Sourcepub fn new(reader: R, version: ERNVersion) -> Self
pub fn new(reader: R, version: ERNVersion) -> Self
Create new working streaming parser
Sourcepub fn feed_chunk(
&mut self,
chunk: &[u8],
) -> Result<Option<WorkingStreamingElement>, ParseError>
pub fn feed_chunk( &mut self, chunk: &[u8], ) -> Result<Option<WorkingStreamingElement>, ParseError>
Feed a chunk of data and parse next element
Sourcepub fn parse_next(
&mut self,
) -> Result<Option<WorkingStreamingElement>, ParseError>
pub fn parse_next( &mut self, ) -> Result<Option<WorkingStreamingElement>, ParseError>
Parse next element from the stream
Sourcepub fn get_stats(&self) -> WorkingStreamingStats
pub fn get_stats(&self) -> WorkingStreamingStats
Get current statistics
Auto Trait Implementations§
impl<R> Freeze for WorkingStreamingParser<R>where
R: Freeze,
impl<R> RefUnwindSafe for WorkingStreamingParser<R>where
R: RefUnwindSafe,
impl<R> Send for WorkingStreamingParser<R>where
R: Send,
impl<R> Sync for WorkingStreamingParser<R>where
R: Sync,
impl<R> Unpin for WorkingStreamingParser<R>where
R: Unpin,
impl<R> UnwindSafe for WorkingStreamingParser<R>where
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more