Enum sqlite::Value
[−]
[src]
pub enum Value { Binary(Vec<u8>), Float(f64), Integer(i64), String(String), Null, }
A typed value.
Variants
Binary(Vec<u8>)
Binary data.
Float(f64)
A floating-point number.
Integer(i64)
An integer number.
String(String)
A string.
Null
A null value.
Methods
impl Value
[src]
fn as_binary(&self) -> Option<&[u8]>
Return the binary data if the value is Binary
.
fn as_float(&self) -> Option<f64>
Return the floating-point number if the value is Float
.
fn as_integer(&self) -> Option<i64>
Return the integer number if the value is Integer
.
fn as_string(&self) -> Option<&str>
Return the string if the value is String
.
fn kind(&self) -> Type
Return the type.
Trait Implementations
impl Bindable for Value
[src]
impl Readable for Value
[src]
impl PartialEq for Value
[src]
fn eq(&self, __arg_0: &Value) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Value) -> bool
This method tests for !=
.
impl Debug for Value
[src]
impl Clone for Value
[src]
fn clone(&self) -> Value
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more