pub enum SqlRef<'a> {
Int(i64),
Float(f64),
Text(&'a str),
Blob(&'a [u8]),
ZeroBlob(ZeroBlob),
Null,
}Expand description
A borrowed SQLite value.
Variants§
Int(i64)
An integer.
Float(f64)
A float.
Text(&'a str)
A string.
Blob(&'a [u8])
A binary blob.
Strings that are not UTF-8 are converted to blobs.
ZeroBlob(ZeroBlob)
A zeroed binary blob.
This is never returned by SQL queries.
Null
A null.
Trait Implementations§
impl<'a> Copy for SqlRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for SqlRef<'a>
impl<'a> RefUnwindSafe for SqlRef<'a>
impl<'a> Send for SqlRef<'a>
impl<'a> Sync for SqlRef<'a>
impl<'a> Unpin for SqlRef<'a>
impl<'a> UnwindSafe for SqlRef<'a>
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