pub struct CsvRecordReader<R> { /* private fields */ }Expand description
Reads records one at a time. Each record is bounded by
CsvImportLimits::max_record_bytes and
CsvImportLimits::max_fields_per_record, and the whole input by
CsvImportLimits::max_file_bytes.
Implementations§
Source§impl<R: Read> CsvRecordReader<R>
impl<R: Read> CsvRecordReader<R>
pub fn new(input: R, terminator: u8, limits: CsvImportLimits) -> Result<Self>
Auto Trait Implementations§
impl<R> Freeze for CsvRecordReader<R>where
R: Freeze,
impl<R> RefUnwindSafe for CsvRecordReader<R>where
R: RefUnwindSafe,
impl<R> Send for CsvRecordReader<R>where
R: Send,
impl<R> Sync for CsvRecordReader<R>where
R: Sync,
impl<R> Unpin for CsvRecordReader<R>where
R: Unpin,
impl<R> UnsafeUnpin for CsvRecordReader<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for CsvRecordReader<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