pub struct CsvWriter<W: Write> { /* private fields */ }
Available on crate feature
csv-file
only.Expand description
Write a DataFrame to csv.
Don’t use a Buffered
writer, the CsvWriter
internally already buffers writes.
Implementations
sourceimpl<W> CsvWriter<W> where
W: Write,
impl<W> CsvWriter<W> where
W: Write,
sourcepub fn has_header(self, has_header: bool) -> Self
pub fn has_header(self, has_header: bool) -> Self
Set whether to write headers
sourcepub fn with_delimiter(self, delimiter: u8) -> Self
pub fn with_delimiter(self, delimiter: u8) -> Self
Set the CSV file’s column delimiter as a byte character
pub fn with_batch_size(self, batch_size: usize) -> Self
sourcepub fn with_date_format(self, format: Option<String>) -> Self
pub fn with_date_format(self, format: Option<String>) -> Self
Set the CSV file’s date format
sourcepub fn with_time_format(self, format: Option<String>) -> Self
pub fn with_time_format(self, format: Option<String>) -> Self
Set the CSV file’s time format
sourcepub fn with_datetime(self, format: Option<String>) -> Self
pub fn with_datetime(self, format: Option<String>) -> Self
Set the CSV file’s timestamp format array in
sourcepub fn with_quoting_char(self, char: u8) -> Self
pub fn with_quoting_char(self, char: u8) -> Self
Set the single byte character used for quoting
Trait Implementations
Auto Trait Implementations
impl<W> RefUnwindSafe for CsvWriter<W> where
W: RefUnwindSafe,
impl<W> Send for CsvWriter<W> where
W: Send,
impl<W> Sync for CsvWriter<W> where
W: Sync,
impl<W> Unpin for CsvWriter<W> where
W: Unpin,
impl<W> UnwindSafe for CsvWriter<W> where
W: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more