Introduce Value representing an arbitrary value for binding and reading

This commit is contained in:
Ivan Ukhov
2015-08-02 20:34:27 -04:00
parent 611beaebb9
commit 825afe4537
2 changed files with 64 additions and 14 deletions

View File

@ -121,10 +121,25 @@ pub enum Type {
Float,
/// The integer type.
Integer,
/// The null type.
Null,
/// The string type.
String,
/// The null type.
Null,
}
/// A typed value.
#[derive(Clone, Debug, PartialEq)]
pub enum Value {
/// Binary data.
Binary(Vec<u8>),
/// A floating-point number.
Float(f64),
/// An integer.
Integer(i64),
/// A string.
String(String),
/// A null value.
Null,
}
impl fmt::Display for Error {