pub enum Scalar {
}
Expand description
A single value, which can be null. Used for representing literal values in [Expressions][crate::expressions::Expression].
Variants§
Integer(i32)
32bit integer
Long(i64)
64bit integer
Short(i16)
16bit integer
Byte(i8)
8bit integer
Float(f32)
32bit floating point
Double(f64)
64bit floating point
String(String)
utf-8 encoded string.
Boolean(bool)
true or false value
Timestamp(i64)
Microsecond precision timestamp, adjusted to UTC.
TimestampNtz(i64)
Microsecond precision timestamp, with no timezone.
Date(i32)
Date stored as a signed 32bit int days since UNIX epoch 1970-01-01
Binary(Vec<u8>)
Binary data
Decimal(i128, u8, i8)
Decimal value
Null(DataType)
Null value with a given data type.
Struct(Vec<Scalar>, Vec<StructField>)
Struct value
Implementations§
Trait Implementations§
source§impl PartialEq for Scalar
impl PartialEq for Scalar
source§impl PartialOrd for Scalar
impl PartialOrd for Scalar
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl StructuralPartialEq for Scalar
Auto Trait Implementations§
impl Freeze for Scalar
impl RefUnwindSafe for Scalar
impl Send for Scalar
impl Sync for Scalar
impl Unpin for Scalar
impl UnwindSafe for Scalar
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<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreCreates a shared type from an unshared type.