pub struct SqliteValueRef<'r>(/* private fields */);Available on crate feature
_sqlite only.Expand description
A borrowed reference to a sqlite3_value.
Semantically, this behaves as a reference to SqliteValue.
ยงNote: Decoding is Stateful
See SqliteValue for details.
Implementationsยง
Sourceยงimpl<'r> SqliteValueRef<'r>
impl<'r> SqliteValueRef<'r>
Sourcepub fn try_to_owned(&self) -> Result<SqliteValue, SqliteError>
pub fn try_to_owned(&self) -> Result<SqliteValue, SqliteError>
Attempt to duplicate the internal sqlite3_value with sqlite3_value_dup().
Returns an error if the call returns a null pointer, indicating that SQLite was unable to allocate the additional memory required.
Non-panicking version of Self::try_to_owned().
Trait Implementationsยง
Sourceยงimpl<'r> ValueRef<'r> for SqliteValueRef<'r>
impl<'r> ValueRef<'r> for SqliteValueRef<'r>
Sourceยงfn to_owned(&self) -> SqliteValue
fn to_owned(&self) -> SqliteValue
Attempt to duplicate the internal sqlite3_value with sqlite3_value_dup().
ยงPanics
If sqlite3_value_dup() returns a null pointer, indicating an out-of-memory condition.
See Self::try_to_owned() for a non-panicking version.
type Database = Sqlite
Sourceยงfn type_info(&self) -> Cow<'_, SqliteTypeInfo>
fn type_info(&self) -> Cow<'_, SqliteTypeInfo>
Get the type information for this value.
Auto Trait Implementationsยง
impl<'r> !Freeze for SqliteValueRef<'r>
impl<'r> !RefUnwindSafe for SqliteValueRef<'r>
impl<'r> !Send for SqliteValueRef<'r>
impl<'r> !Sync for SqliteValueRef<'r>
impl<'r> Unpin for SqliteValueRef<'r>
impl<'r> !UnwindSafe for SqliteValueRef<'r>
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> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self> โ
fn into_either(self, into_left: bool) -> Either<Self, Self> โ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more