pub struct GeneralizedNQuadsParser<R: BufRead> { /* private fields */ }
Expand description
A N-Quads streaming parser parsing generalized quads.
It implements the GeneralizedQuadsParser
trait.
Using it requires to enable the generalized
feature.
Implementations§
Trait Implementations§
Source§impl<R: BufRead> GeneralizedQuadsParser for GeneralizedNQuadsParser<R>
impl<R: BufRead> GeneralizedQuadsParser for GeneralizedNQuadsParser<R>
type Error = TurtleError
Source§fn parse_step<E: From<TurtleError>>(
&mut self,
on_quad: &mut impl FnMut(GeneralizedQuad<'_>) -> Result<(), E>,
) -> Result<(), E>
fn parse_step<E: From<TurtleError>>( &mut self, on_quad: &mut impl FnMut(GeneralizedQuad<'_>) -> Result<(), E>, ) -> Result<(), E>
Parses a small chunk of the file and calls
on_quad
each time a new quad is read.
(A “small chunk” could be a line for an N-Quads parser.) Read moreAuto Trait Implementations§
impl<R> Freeze for GeneralizedNQuadsParser<R>where
R: Freeze,
impl<R> RefUnwindSafe for GeneralizedNQuadsParser<R>where
R: RefUnwindSafe,
impl<R> Send for GeneralizedNQuadsParser<R>where
R: Send,
impl<R> Sync for GeneralizedNQuadsParser<R>where
R: Sync,
impl<R> Unpin for GeneralizedNQuadsParser<R>where
R: Unpin,
impl<R> UnwindSafe for GeneralizedNQuadsParser<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