#[non_exhaustive]pub enum Scalar {
Int(i64),
UInt(u64),
Float(f64),
Bool(bool),
Str(String),
}Expand description
A literal value a column is compared with.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Int(i64)
A signed integer; compares with any numeric column (decimals at their scale).
UInt(u64)
An unsigned integer; compares with any numeric column.
Float(f64)
A float; compares with any numeric column.
Bool(bool)
A boolean.
Str(String)
Text; compares with string and dictionary-of-string columns.
Trait Implementations§
impl 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 UnsafeUnpin for Scalar
impl UnwindSafe for Scalar
Blanket Implementations§
impl<T> Allocation for T
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