Enum rusqlite::types::ToSqlOutput
source · [−]#[non_exhaustive]
pub enum ToSqlOutput<'a> {
Borrowed(ValueRef<'a>),
Owned(Value),
ZeroBlob(i32),
Array(Array),
}
Expand description
ToSqlOutput
represents the possible output types for implementers of the
ToSql
trait.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Borrowed(ValueRef<'a>)
A borrowed SQLite-representable value.
Owned(Value)
An owned SQLite-representable value.
ZeroBlob(i32)
This is supported on crate feature
blob
only.A BLOB of the given length that is filled with zeroes.
Array(Array)
This is supported on crate feature
array
only.feature = "array"
Trait Implementations
sourceimpl<'a> Clone for ToSqlOutput<'a>
impl<'a> Clone for ToSqlOutput<'a>
sourcefn clone(&self) -> ToSqlOutput<'a>
fn clone(&self) -> ToSqlOutput<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for ToSqlOutput<'a>
impl<'a> Debug for ToSqlOutput<'a>
sourceimpl<'a> PartialEq<ToSqlOutput<'a>> for ToSqlOutput<'a>
impl<'a> PartialEq<ToSqlOutput<'a>> for ToSqlOutput<'a>
sourcefn eq(&self, other: &ToSqlOutput<'a>) -> bool
fn eq(&self, other: &ToSqlOutput<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ToSqlOutput<'a>) -> bool
fn ne(&self, other: &ToSqlOutput<'a>) -> bool
This method tests for !=
.
sourceimpl ToSql for ToSqlOutput<'_>
impl ToSql for ToSqlOutput<'_>
sourcefn to_sql(&self) -> Result<ToSqlOutput<'_>>
fn to_sql(&self) -> Result<ToSqlOutput<'_>>
Converts Rust value to SQLite value
impl<'a> StructuralPartialEq for ToSqlOutput<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ToSqlOutput<'a>
impl<'a> !Send for ToSqlOutput<'a>
impl<'a> !Sync for ToSqlOutput<'a>
impl<'a> Unpin for ToSqlOutput<'a>
impl<'a> UnwindSafe for ToSqlOutput<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more