pub enum Value {
Null,
Integer(i64),
Real(f64),
Text(String),
Blob(Vec<u8>),
}Expand description
The five SQLite storage classes — this crate’s currency for both statement parameters and result-row values.
Variants§
Null
SQL NULL.
Integer(i64)
A signed 64-bit integer.
Real(f64)
A 64-bit IEEE-754 float.
Text(String)
A UTF-8 string.
Blob(Vec<u8>)
An arbitrary byte string.
Trait Implementations§
Source§impl<T: Into<Value>> From<Option<T>> for Value
impl<T: Into<Value>> From<Option<T>> for Value
Source§fn from(v: Option<T>) -> Self
fn from(v: Option<T>) -> Self
None → Value::Null; Some(v) → v’s own conversion.
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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