Enum sqlite_tiny::api::types::SqliteType

source ·
pub enum SqliteType {
    Null,
    Integer(i64),
    Real(f64),
    Text(String),
    Blob(Vec<u8>),
}
Expand description

An SQLite convertible type

Variants§

§

Null

NULL

§

Integer(i64)

INTEGER

§

Real(f64)

REAL

§

Text(String)

TEXT

§

Blob(Vec<u8>)

BLOB

Trait Implementations§

source§

impl Clone for SqliteType

source§

fn clone(&self) -> SqliteType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SqliteType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for SqliteType

source§

fn eq(&self, other: &SqliteType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<&[u8]> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &[u8]) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&str> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: &str) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Option<&[u8]>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: Option<&[u8]>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Option<&str>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: Option<&str>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Option<String>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: Option<String>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Option<Vec<u8>>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: Option<Vec<u8>>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Option<f32>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: Option<f32>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Option<f64>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: Option<f64>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Option<i128>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: Option<i128>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Option<i16>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: Option<i16>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Option<i32>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: Option<i32>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Option<i64>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: Option<i64>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Option<i8>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: Option<i8>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Option<isize>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: Option<isize>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Option<u128>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: Option<u128>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Option<u16>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: Option<u16>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Option<u32>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: Option<u32>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Option<u64>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: Option<u64>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Option<u8>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: Option<u8>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Option<usize>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: Option<usize>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<String> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: String) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Vec<u8>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: Vec<u8>) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<f32> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: f32) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<f64> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: f64) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<i128> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: i128) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<i16> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: i16) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<i32> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: i32) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<i64> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: i64) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<i8> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: i8) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<isize> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: isize) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<u128> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: u128) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<u16> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: u16) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<u32> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: u32) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<u64> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: u64) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<u8> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: u8) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<usize> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: usize) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryInto<Option<String>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Option<String>, Self::Error>

Performs the conversion.
source§

impl TryInto<Option<Vec<u8>>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Option<Vec<u8>>, Self::Error>

Performs the conversion.
source§

impl TryInto<Option<f64>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Option<f64>, Self::Error>

Performs the conversion.
source§

impl TryInto<Option<i128>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Option<i128>, Self::Error>

Performs the conversion.
source§

impl TryInto<Option<i16>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Option<i16>, Self::Error>

Performs the conversion.
source§

impl TryInto<Option<i32>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Option<i32>, Self::Error>

Performs the conversion.
source§

impl TryInto<Option<i64>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Option<i64>, Self::Error>

Performs the conversion.
source§

impl TryInto<Option<i8>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Option<i8>, Self::Error>

Performs the conversion.
source§

impl TryInto<Option<isize>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Option<isize>, Self::Error>

Performs the conversion.
source§

impl TryInto<Option<u128>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Option<u128>, Self::Error>

Performs the conversion.
source§

impl TryInto<Option<u16>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Option<u16>, Self::Error>

Performs the conversion.
source§

impl TryInto<Option<u32>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Option<u32>, Self::Error>

Performs the conversion.
source§

impl TryInto<Option<u64>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Option<u64>, Self::Error>

Performs the conversion.
source§

impl TryInto<Option<u8>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Option<u8>, Self::Error>

Performs the conversion.
source§

impl TryInto<Option<usize>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Option<usize>, Self::Error>

Performs the conversion.
source§

impl TryInto<String> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<String, Self::Error>

Performs the conversion.
source§

impl TryInto<Vec<u8>> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Vec<u8>, Self::Error>

Performs the conversion.
source§

impl TryInto<f64> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<f64, Self::Error>

Performs the conversion.
source§

impl TryInto<i128> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<i128, Self::Error>

Performs the conversion.
source§

impl TryInto<i16> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<i16, Self::Error>

Performs the conversion.
source§

impl TryInto<i32> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<i32, Self::Error>

Performs the conversion.
source§

impl TryInto<i64> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<i64, Self::Error>

Performs the conversion.
source§

impl TryInto<i8> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<i8, Self::Error>

Performs the conversion.
source§

impl TryInto<isize> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<isize, Self::Error>

Performs the conversion.
source§

impl TryInto<u128> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<u128, Self::Error>

Performs the conversion.
source§

impl TryInto<u16> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<u16, Self::Error>

Performs the conversion.
source§

impl TryInto<u32> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<u32, Self::Error>

Performs the conversion.
source§

impl TryInto<u64> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<u64, Self::Error>

Performs the conversion.
source§

impl TryInto<u8> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<u8, Self::Error>

Performs the conversion.
source§

impl TryInto<usize> for SqliteType

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<usize, Self::Error>

Performs the conversion.
source§

impl StructuralPartialEq for SqliteType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.