pub enum SQLiteValueRef<'a> {
Integer(i64),
Real(f64),
Text(&'a str),
Blob(&'a [u8]),
Null,
}Expand description
Borrowed view of a SQLite value.
This is the zero-copy read-side representation used by custom column
decoders. Text and blob payloads borrow directly from the driver row or
from an existing SQLiteValue.
Variants§
Integer(i64)
Integer value (i64)
Real(f64)
Real value (f64)
Text(&'a str)
Text value
Blob(&'a [u8])
Blob value
Null
NULL value
Implementations§
Source§impl<'a> SQLiteValueRef<'a>
impl<'a> SQLiteValueRef<'a>
Sourcepub const fn into_value(self) -> SQLiteValue<'a>
pub const fn into_value(self) -> SQLiteValue<'a>
Converts this borrowed value into a SQLiteValue.
Trait Implementations§
Source§impl<'a> Clone for SQLiteValueRef<'a>
impl<'a> Clone for SQLiteValueRef<'a>
Source§fn clone(&self) -> SQLiteValueRef<'a>
fn clone(&self) -> SQLiteValueRef<'a>
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 moreimpl<'a> Copy for SQLiteValueRef<'a>
Source§impl<'a> Debug for SQLiteValueRef<'a>
impl<'a> Debug for SQLiteValueRef<'a>
Source§impl<'a> Default for SQLiteValueRef<'a>
impl<'a> Default for SQLiteValueRef<'a>
Source§fn default() -> SQLiteValueRef<'a>
fn default() -> SQLiteValueRef<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a SQLiteValue<'_>> for SQLiteValueRef<'a>
impl<'a> From<&'a SQLiteValue<'_>> for SQLiteValueRef<'a>
Source§fn from(value: &'a SQLiteValue<'_>) -> Self
fn from(value: &'a SQLiteValue<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<SQLiteValueRef<'a>> for SQLiteValue<'a>
impl<'a> From<SQLiteValueRef<'a>> for SQLiteValue<'a>
Source§fn from(value: SQLiteValueRef<'a>) -> Self
fn from(value: SQLiteValueRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for SQLiteValueRef<'a>
impl<'a> PartialEq for SQLiteValueRef<'a>
Source§fn eq(&self, other: &SQLiteValueRef<'a>) -> bool
fn eq(&self, other: &SQLiteValueRef<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> PartialOrd for SQLiteValueRef<'a>
impl<'a> PartialOrd for SQLiteValueRef<'a>
impl<'a> StructuralPartialEq for SQLiteValueRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for SQLiteValueRef<'a>
impl<'a> RefUnwindSafe for SQLiteValueRef<'a>
impl<'a> Send for SQLiteValueRef<'a>
impl<'a> Sync for SQLiteValueRef<'a>
impl<'a> Unpin for SQLiteValueRef<'a>
impl<'a> UnsafeUnpin for SQLiteValueRef<'a>
impl<'a> UnwindSafe for SQLiteValueRef<'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