#[non_exhaustive]pub enum ScalarValue {
Bool(bool),
I32(i32),
I64(i64),
F32(f32),
F64(f64),
Text(String),
Bytes(Vec<u8>),
}Expand description
A typed, non-null scalar used in predicates.
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.
Implementations§
Source§impl ScalarValue
impl ScalarValue
Sourcepub fn logical_weight(&self) -> usize
pub fn logical_weight(&self) -> usize
Structured inputs charge their elements to the same logical budget.
pub fn to_external_text(&self) -> String
pub fn value_type(&self) -> ValueType
Trait Implementations§
Source§impl Clone for ScalarValue
impl Clone for ScalarValue
Source§impl Debug for ScalarValue
impl Debug for ScalarValue
Source§impl From<ScalarValue> for RowValue
impl From<ScalarValue> for RowValue
Source§fn from(value: ScalarValue) -> Self
fn from(value: ScalarValue) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScalarValue
impl PartialEq for ScalarValue
impl StructuralPartialEq for ScalarValue
Auto Trait Implementations§
impl Freeze for ScalarValue
impl RefUnwindSafe for ScalarValue
impl Send for ScalarValue
impl Sync for ScalarValue
impl Unpin for ScalarValue
impl UnsafeUnpin for ScalarValue
impl UnwindSafe for ScalarValue
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