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
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 moresourceimpl Debug for LiteralValue
impl Debug for LiteralValue
sourceimpl<'de> Deserialize<'de> for LiteralValue
impl<'de> Deserialize<'de> for LiteralValue
sourcefn 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
sourceimpl PartialEq<LiteralValue> for LiteralValue
impl PartialEq<LiteralValue> for LiteralValue
sourcefn eq(&self, other: &LiteralValue) -> bool
fn eq(&self, other: &LiteralValue) -> bool
sourceimpl Serialize for LiteralValue
impl Serialize for LiteralValue
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<'_>) -> PolarsResult<Self>
fn try_from(value: AnyValue<'_>) -> PolarsResult<Self>
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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