pub struct LinesSource<R: BufRead> { /* private fields */ }Expand description
A line-delimited reader as a source.
Implementations§
Source§impl<R: BufRead> LinesSource<R>
impl<R: BufRead> LinesSource<R>
pub fn new(reader: R, format: LineFormat) -> LinesSource<R>
pub fn limits(self, limits: Limits) -> Self
pub fn abort(self, abort: AbortFlag) -> Self
pub fn metrics(self, metrics: Arc<Metrics>) -> Self
Sourcepub fn chunk_bytes(self, bytes: usize) -> Self
pub fn chunk_bytes(self, bytes: usize) -> Self
The CSV chunk size; a chunk closes at the first record boundary at or past it. Zero closes a chunk at every record.
Trait Implementations§
Auto Trait Implementations§
impl<R> !RefUnwindSafe for LinesSource<R>
impl<R> !UnwindSafe for LinesSource<R>
impl<R> Freeze for LinesSource<R>where
R: Freeze,
impl<R> Send for LinesSource<R>where
R: Send,
impl<R> Sync for LinesSource<R>where
R: Sync,
impl<R> Unpin for LinesSource<R>where
R: Unpin,
impl<R> UnsafeUnpin for LinesSource<R>where
R: UnsafeUnpin,
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