pub struct CsvOptions { /* private fields */ }Expand description
Options for encode_csv.
Implementations§
Source§impl CsvOptions
impl CsvOptions
Sourcepub const fn without_formula_neutralization(self) -> Self
pub const fn without_formula_neutralization(self) -> Self
Writes text cells unchanged even when they start like a formula.
Sourcepub const fn with_byte_order_mark(self) -> Self
pub const fn with_byte_order_mark(self) -> Self
Starts the output with a UTF-8 byte-order mark.
Sourcepub const fn with_all_cells_quoted(self) -> Self
pub const fn with_all_cells_quoted(self) -> Self
Quotes every text and numeric cell. Empty cells stay unquoted, so a reader can tell them from empty text.
Sourcepub const fn with_null_marker(self, marker: &'static str) -> Self
pub const fn with_null_marker(self, marker: &'static str) -> Self
Writes marker unquoted for an empty cell and quotes a text cell with the same content.
§Panics
Panics when marker is empty or contains a double quote, comma, CR, or LF. In a const
item the check fails the build instead.
Trait Implementations§
Source§impl Clone for CsvOptions
impl Clone for CsvOptions
impl Copy for CsvOptions
Source§impl Debug for CsvOptions
impl Debug for CsvOptions
Source§impl Default for CsvOptions
impl Default for CsvOptions
impl Eq for CsvOptions
Source§impl PartialEq for CsvOptions
impl PartialEq for CsvOptions
impl StructuralPartialEq for CsvOptions
Auto Trait Implementations§
impl Freeze for CsvOptions
impl RefUnwindSafe for CsvOptions
impl Send for CsvOptions
impl Sync for CsvOptions
impl Unpin for CsvOptions
impl UnsafeUnpin for CsvOptions
impl UnwindSafe for CsvOptions
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