Enum polars::prelude::QuoteStyle
source · pub enum QuoteStyle {
Always,
Necessary,
NonNumeric,
Never,
}
Available on crate feature
polars-io
only.Variants§
Always
This puts quotes around every field. Always.
Necessary
This puts quotes around fields only when necessary.
NonNumeric
This puts quotes around all fields that are non-numeric. Namely, when writing a field that does not parse as a valid float or integer, then 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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§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