pub struct PgJsonlStreamParser { /* private fields */ }Expand description
Stateful line-by-line PG-JSONL parser. Memory is bounded by one line: nothing is retained between calls except the line counter.
Implementations§
Source§impl PgJsonlStreamParser
impl PgJsonlStreamParser
Sourcepub fn parse_line(
&mut self,
line: &str,
) -> Result<Option<PgJsonlRecord>, PgJsonlError>
pub fn parse_line( &mut self, line: &str, ) -> Result<Option<PgJsonlRecord>, PgJsonlError>
Parse one physical line. Blank lines yield Ok(None).
§Errors
Returns PgJsonlError when the line is not a valid node or
edge record.
Trait Implementations§
Source§impl Debug for PgJsonlStreamParser
impl Debug for PgJsonlStreamParser
Auto Trait Implementations§
impl Forget for PgJsonlStreamParser
impl Freeze for PgJsonlStreamParser
impl RefUnwindSafe for PgJsonlStreamParser
impl Send for PgJsonlStreamParser
impl Sync for PgJsonlStreamParser
impl Unpin for PgJsonlStreamParser
impl UnsafeUnpin for PgJsonlStreamParser
impl UnwindSafe for PgJsonlStreamParser
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