pub enum SqliteValue {
Null,
Integer(i64),
Real(f64),
Text(String),
Blob(Vec<u8>),
}Expand description
One of SQLite’s five storage classes.
PartialEq is the derived one, so Real values follow IEEE rules and a
NaN is not equal to itself. That matters because a file can hold any 64
bit pattern in a float field: SQLite’s own API turns a NaN into NULL on
the way in, but a corrupted or hand written file is under no such
obligation. Code asking whether two reads produced the same bytes should
compare to_bits rather than the values.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SqliteValue
impl Clone for SqliteValue
Source§impl Debug for SqliteValue
impl Debug for SqliteValue
Source§impl PartialEq for SqliteValue
impl PartialEq for SqliteValue
impl StructuralPartialEq for SqliteValue
Auto Trait Implementations§
impl Freeze for SqliteValue
impl RefUnwindSafe for SqliteValue
impl Send for SqliteValue
impl Sync for SqliteValue
impl Unpin for SqliteValue
impl UnsafeUnpin for SqliteValue
impl UnwindSafe for SqliteValue
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