Enum rusqlite::types::ToSqlOutput [−][src]
#[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>)
Tuple Fields
0: ValueRef<'a>
A borrowed SQLite-representable value.
Owned(Value)
Tuple Fields
0: Value
An owned SQLite-representable value.
ZeroBlob(i32)
Tuple Fields
0: i32
feature = "blob"
A BLOB of the given length that is filled with
zeroes.
Array(Array)
Tuple Fields
0: Array
feature = "array"
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Converts Rust value to SQLite value
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
Mutably borrows from an owned value. Read more