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(SpecialEq<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(SpecialEq<Series>)
Implementations
sourceimpl LiteralValue
impl LiteralValue
pub fn to_anyvalue(&self) -> Option<AnyValue<'_>>
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 !=
.
sourceimpl TryFrom<AnyValue<'_>> for LiteralValue
impl TryFrom<AnyValue<'_>> for LiteralValue
type Error = PolarsError
type Error = PolarsError
The type returned in the event of a conversion error.
sourcefn try_from(value: AnyValue<'_>) -> Result<LiteralValue, PolarsError>
fn try_from(value: AnyValue<'_>) -> Result<LiteralValue, PolarsError>
Performs the conversion.
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