pub struct TotalReaderBuilder { /* private fields */ }Expand description
Builds a TotalReader with given configuration.
Implementations§
Source§impl TotalReaderBuilder
impl TotalReaderBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new TotalReaderBuilder with default configuration.
Sourcepub fn delimiter(&mut self, delimiter: u8) -> &mut Self
pub fn delimiter(&mut self, delimiter: u8) -> &mut Self
Set the delimiter to be used by the created TotalReader.
This delimiter must be a single byte.
Will default to a comma.
Sourcepub fn quote(&mut self, quote: u8) -> &mut Self
pub fn quote(&mut self, quote: u8) -> &mut Self
Set the quote char to be used by the created TotalReader.
This char must be a single byte.
Will default to a double quote.
Sourcepub fn has_headers(&mut self, yes: bool) -> &mut Self
pub fn has_headers(&mut self, yes: bool) -> &mut Self
Indicate whether first record must be understood as a header.
Will default to true.
Sourcepub fn from_bytes<'b>(&self, bytes: &'b [u8]) -> TotalReader<'b>
pub fn from_bytes<'b>(&self, bytes: &'b [u8]) -> TotalReader<'b>
Create a TotalReader from given bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TotalReaderBuilder
impl RefUnwindSafe for TotalReaderBuilder
impl Send for TotalReaderBuilder
impl Sync for TotalReaderBuilder
impl Unpin for TotalReaderBuilder
impl UnwindSafe for TotalReaderBuilder
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