pub struct NdjsonPerRowDriver<R> { /* private fields */ }Expand description
Forward-only per-row NDJSON reader.
Implementations§
Source§impl<R: BufRead> NdjsonPerRowDriver<R>
impl<R: BufRead> NdjsonPerRowDriver<R>
pub fn new(reader: R) -> Self
pub fn with_options(self, options: NdjsonOptions) -> Self
pub fn with_max_line_len(self, max_line_len: usize) -> Self
pub fn with_row_frame(self, row_frame: NdjsonRowFrame) -> Self
pub fn line_no(&self) -> u64
pub fn read_next_nonempty<'a>( &mut self, buf: &'a mut Vec<u8>, ) -> Result<Option<(u64, &'a [u8])>, RowError>
pub fn read_next_owned( &mut self, buf: &mut Vec<u8>, ) -> Result<Option<(u64, Vec<u8>)>, RowError>
Auto Trait Implementations§
impl<R> Freeze for NdjsonPerRowDriver<R>where
R: Freeze,
impl<R> RefUnwindSafe for NdjsonPerRowDriver<R>where
R: RefUnwindSafe,
impl<R> Send for NdjsonPerRowDriver<R>where
R: Send,
impl<R> Sync for NdjsonPerRowDriver<R>where
R: Sync,
impl<R> Unpin for NdjsonPerRowDriver<R>where
R: Unpin,
impl<R> UnsafeUnpin for NdjsonPerRowDriver<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for NdjsonPerRowDriver<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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more