Enum polars::prelude::LiteralValue
source · [−]pub enum LiteralValue {
Show 17 variants
Null,
Boolean(bool),
Utf8(String),
UInt8(u8),
UInt16(u16),
UInt32(u32),
UInt64(u64),
Int8(i8),
Int16(i16),
Int32(i32),
Int64(i64),
Float32(f32),
Float64(f64),
Range {
low: i64,
high: i64,
data_type: DataType,
},
DateTime(NaiveDateTime, TimeUnit),
Duration(Duration, TimeUnit),
Series(NoEq<Series>),
}
Variants
Null
Boolean(bool)
A binary true or false.
Utf8(String)
A UTF8 encoded string type.
UInt8(u8)
An unsigned 8-bit integer number.
UInt16(u16)
An unsigned 16-bit integer number.
UInt32(u32)
An unsigned 32-bit integer number.
UInt64(u64)
An unsigned 64-bit integer number.
Int8(i8)
An 8-bit integer number.
Int16(i16)
A 16-bit integer number.
Int32(i32)
A 32-bit integer number.
Int64(i64)
A 64-bit integer number.
Float32(f32)
A 32-bit floating point number.
Float64(f64)
A 64-bit floating point number.
Range
DateTime(NaiveDateTime, TimeUnit)
Duration(Duration, TimeUnit)
Series(NoEq<Series>)
Implementations
sourceimpl LiteralValue
impl LiteralValue
sourcepub fn get_datatype(&self) -> DataType
pub fn get_datatype(&self) -> DataType
Getter for the DataType
of the value
Trait Implementations
sourceimpl Clone for LiteralValue
impl Clone for LiteralValue
sourcefn clone(&self) -> LiteralValue
fn clone(&self) -> LiteralValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LiteralValue
impl Debug for LiteralValue
sourceimpl PartialEq<LiteralValue> for LiteralValue
impl PartialEq<LiteralValue> for LiteralValue
sourcefn eq(&self, other: &LiteralValue) -> bool
fn eq(&self, other: &LiteralValue) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LiteralValue) -> bool
fn ne(&self, other: &LiteralValue) -> bool
This method tests for !=
.
impl StructuralPartialEq for LiteralValue
Auto Trait Implementations
impl !RefUnwindSafe for LiteralValue
impl Send for LiteralValue
impl Sync for LiteralValue
impl Unpin for LiteralValue
impl !UnwindSafe for LiteralValue
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
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more