Enum mentat_sql::Value
[−]
[src]
pub enum Value { Null, Integer(i64), Real(f64), Text(String), Blob(Vec<u8>), }
Owning dynamic type value. Value's type is typically dictated by SQLite (not by the caller).
See ValueRef
for a non-owning dynamic type value.
Variants
Null
The value is a NULL
value.
Integer(i64)
The value is a signed integer.
Real(f64)
The value is a floating point number.
Text(String)
The value is a text string.
Blob(Vec<u8>)
The value is a blob of data
Methods
impl Value
[src]
Trait Implementations
impl From<i64> for Value
[src]
impl From<bool> for Value
[src]
impl<'a> From<&'a Value> for ValueRef<'a>
[src]
impl From<String> for Value
[src]
impl From<u32> for Value
[src]
impl From<i32> for Value
[src]
impl From<f64> for Value
[src]
impl From<u8> for Value
[src]
impl From<u16> for Value
[src]
impl<'a> From<ValueRef<'a>> for Value
[src]
impl From<i8> for Value
[src]
impl From<isize> for Value
[src]
impl From<Null> for Value
[src]
impl From<Vec<u8>> for Value
[src]
impl From<i16> for Value
[src]
impl FromSql for Value
[src]
fn column_result(value: ValueRef) -> Result<Value, FromSqlError>
[src]
impl ToSql for Value
[src]
fn to_sql(&self) -> Result<ToSqlOutput, Error>
[src]
impl PartialEq<Value> for Value
[src]
fn eq(&self, __arg_0: &Value) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Value) -> bool
[src]
This method tests for !=
.
impl Debug for Value
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more