Enum polars_plan::logical_plan::LiteralValue
source · pub enum LiteralValue {
Show 18 variants
Null,
Boolean(bool),
Utf8(String),
Binary(Vec<u8>),
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(ChronoDuration, TimeUnit),
Series(SpecialEq<Series>),
}
Variants§
Null
Boolean(bool)
A binary true or false.
Utf8(String)
A UTF8 encoded string type.
Binary(Vec<u8>)
A raw binary array
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(ChronoDuration, TimeUnit)
Series(SpecialEq<Series>)
Implementations§
source§impl 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§
source§impl Clone for LiteralValue
impl Clone for LiteralValue
source§fn clone(&self) -> LiteralValue
fn clone(&self) -> LiteralValue
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 LiteralValue
impl Debug for LiteralValue
source§impl<'de> Deserialize<'de> for LiteralValue
impl<'de> Deserialize<'de> for LiteralValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<LiteralValue> for LiteralValue
impl PartialEq<LiteralValue> for LiteralValue
source§fn 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 ==
.source§impl Serialize for LiteralValue
impl Serialize for LiteralValue
source§impl 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.
source§fn try_from(value: AnyValue<'_>) -> PolarsResult<Self>
fn try_from(value: AnyValue<'_>) -> PolarsResult<Self>
Performs the conversion.