pub struct StreamingDDEXParser<R: BufRead> { /* private fields */ }
Expand description
High-performance streaming DDEX parser
Implementations§
Source§impl<R: BufRead> StreamingDDEXParser<R>
impl<R: BufRead> StreamingDDEXParser<R>
Sourcepub fn new(reader: R, version: ERNVersion) -> Self
pub fn new(reader: R, version: ERNVersion) -> Self
Create new streaming parser
Sourcepub fn with_config(
reader: R,
version: ERNVersion,
config: StreamingConfig,
) -> Self
pub fn with_config( reader: R, version: ERNVersion, config: StreamingConfig, ) -> Self
Create with custom configuration
Sourcepub fn with_progress_callback<F>(self, callback: F) -> Self
pub fn with_progress_callback<F>(self, callback: F) -> Self
Set progress callback
Sourcepub fn parse_next_element(
&mut self,
) -> Result<Option<ParsedElement>, ParseError>
pub fn parse_next_element( &mut self, ) -> Result<Option<ParsedElement>, ParseError>
Parse next element from stream
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for StreamingDDEXParser<R>where
R: Freeze,
impl<R> !RefUnwindSafe for StreamingDDEXParser<R>
impl<R> Send for StreamingDDEXParser<R>where
R: Send,
impl<R> !Sync for StreamingDDEXParser<R>
impl<R> Unpin for StreamingDDEXParser<R>where
R: Unpin,
impl<R> !UnwindSafe for StreamingDDEXParser<R>
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