pub enum Value<S, B> {
Null,
Integer(i64),
Real(f64),
Text(S),
Blob(B),
}Expand description
A value that can be encoded in SQLite changeset format.
Variants§
Null
SQL NULL
Integer(i64)
64-bit signed integer (always encoded as 8 bytes big-endian)
Real(f64)
IEEE 754 floating point (8 bytes big-endian)
Text(S)
UTF-8 text (varint length + bytes)
Blob(B)
Binary blob (varint length + bytes)
Implementations§
Trait Implementations§
impl<S: Copy, B: Copy> Copy for Value<S, B>
impl<S: AsRef<str> + Eq, B: AsRef<[u8]> + Eq> Eq for Value<S, B>
Auto Trait Implementations§
impl<S, B> Freeze for Value<S, B>
impl<S, B> RefUnwindSafe for Value<S, B>where
S: RefUnwindSafe,
B: RefUnwindSafe,
impl<S, B> Send for Value<S, B>
impl<S, B> Sync for Value<S, B>
impl<S, B> Unpin for Value<S, B>
impl<S, B> UnsafeUnpin for Value<S, B>where
S: UnsafeUnpin,
B: UnsafeUnpin,
impl<S, B> UnwindSafe for Value<S, B>where
S: UnwindSafe,
B: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.