pub enum QueryValue {
String(String),
Integer(i64),
Float(f64),
Bool(bool),
}Expand description
A literal value appearing on the right-hand side of a comparison.
The type distinction matters because the executor binds numbers and
booleans with their native SQLite types so numeric comparison
(req_id > 100) uses proper ordering rather than lexical.
Variants§
Trait Implementations§
Source§impl Clone for QueryValue
impl Clone for QueryValue
Source§fn clone(&self) -> QueryValue
fn clone(&self) -> QueryValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QueryValue
impl Debug for QueryValue
Source§impl PartialEq for QueryValue
impl PartialEq for QueryValue
Source§fn eq(&self, other: &QueryValue) -> bool
fn eq(&self, other: &QueryValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QueryValue
Auto Trait Implementations§
impl Freeze for QueryValue
impl RefUnwindSafe for QueryValue
impl Send for QueryValue
impl Sync for QueryValue
impl Unpin for QueryValue
impl UnsafeUnpin for QueryValue
impl UnwindSafe for QueryValue
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