Enum binn_ir::value::Value[][src]

pub enum Value {
    Null,
    True,
    False,
    U8(u8),
    I8(i8),
    U16(u16),
    I16(i16),
    U32(u32),
    I32(i32),
    Float(f32),
    U64(u64),
    I64(i64),
    Double(f64),
    Text(String),
    DateTime(String),
    Date(String),
    Time(String),
    DecimalStr(String),
    Blob(Vec<u8>),
    List(Vec<Value>),
    Map(BTreeMap<i32, Value>),
    Object(HashMap<String, Value>),
}

Variants

Methods

impl Value
[src]

Encodes this value into a buffer

Returns the number of bytes written.

Decodes a value from source

If it returns Ok(None), it means there's no more data to decode.

Trait Implementations

impl Clone for Value
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Value
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for Value
[src]

Formats the value using the given formatter. Read more

impl Debug for Value
[src]

Formats the value using the given formatter. Read more

impl AsRef<Value> for Value
[src]

Performs the conversion.

impl From<()> for Value
[src]

impl From<bool> for Value
[src]

impl From<u8> for Value
[src]

impl From<i8> for Value
[src]

impl From<u16> for Value
[src]

impl From<i16> for Value
[src]

impl From<u32> for Value
[src]

impl From<i32> for Value
[src]

impl From<f32> for Value
[src]

impl From<u64> for Value
[src]

impl From<i64> for Value
[src]

impl From<f64> for Value
[src]

impl From<String> for Value
[src]

impl<'a> From<&'a str> for Value
[src]

impl From<Vec<u8>> for Value
[src]

impl<'a> From<&'a Vec<u8>> for Value
[src]

impl<'a> From<&'a [u8]> for Value
[src]

impl From<Vec<Value>> for Value
[src]

impl<'a> From<&'a Vec<Value>> for Value
[src]

impl From<BTreeMap<i32, Value>> for Value
[src]

impl<'a> From<&'a BTreeMap<i32, Value>> for Value
[src]

impl From<HashMap<String, Value>> for Value
[src]

impl<'a> From<&'a HashMap<String, Value>> for Value
[src]

Auto Trait Implementations

impl Send for Value

impl Sync for Value