Enum polars::prelude::QuoteStyle
source · pub enum QuoteStyle {
Necessary,
Always,
NonNumeric,
Never,
}
Available on crate feature
polars-io
only.Expand description
Quote style indicating when to insert quotes around a field.
Variants§
Necessary
Quote fields only when necessary.
Quotes are necessary when fields contain a quote, separator or record terminator. Quotes are also necessary when writing an empty record (which is indistinguishable from arecord with one empty field). This is the default.
Always
Quote every field. Always.
NonNumeric
Quote non-numeric fields.
When writing a field that does not parse as a valid float or integer, quotes will be used even if they aren’t strictly necessary.
Never
Never quote any fields, even if it would produce invalid CSV data.
Trait Implementations§
source§impl Clone for QuoteStyle
impl Clone for QuoteStyle
source§fn clone(&self) -> QuoteStyle
fn clone(&self) -> QuoteStyle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for QuoteStyle
impl Debug for QuoteStyle
source§impl Default for QuoteStyle
impl Default for QuoteStyle
source§fn default() -> QuoteStyle
fn default() -> QuoteStyle
Returns the “default value” for a type. Read more
source§impl Hash for QuoteStyle
impl Hash for QuoteStyle
source§impl PartialEq for QuoteStyle
impl PartialEq for QuoteStyle
source§fn eq(&self, other: &QuoteStyle) -> bool
fn eq(&self, other: &QuoteStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for QuoteStyle
impl Eq for QuoteStyle
impl StructuralPartialEq for QuoteStyle
Auto Trait Implementations§
impl Freeze for QuoteStyle
impl RefUnwindSafe for QuoteStyle
impl Send for QuoteStyle
impl Sync for QuoteStyle
impl Unpin for QuoteStyle
impl UnwindSafe for QuoteStyle
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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