[][src]Enum msgpack::Value

pub enum Value {
    Integer(Integer),
    Nil,
    Boolean(bool),
    Float(Float),
    Binary(Vec<u8>),
    String(Utf8String),
    Array(Vec<Value>),
    Map(Vec<(Value, Value)>),
    Extension(i8Vec<u8>),
    Timestamp(i64u32),
}

Variants

Integer(Integer)NilBoolean(bool)Float(Float)Binary(Vec<u8>)String(Utf8String)Array(Vec<Value>)Map(Vec<(Value, Value)>)Extension(i8Vec<u8>)Timestamp(i64u32)

Methods

impl Value[src]

pub fn to_ref(&self) -> RefValue[src]

pub fn to_nil(&self) -> Option<Nil>[src]

pub fn to_ary(&self) -> Option<&Vec<Value>>[src]

Trait Implementations

impl Clone for Value[src]

impl PartialEq<Value> for Value[src]

impl From<u8> for Value[src]

impl From<u16> for Value[src]

impl From<u32> for Value[src]

impl From<u64> for Value[src]

impl From<usize> for Value[src]

impl From<i8> for Value[src]

impl From<i16> for Value[src]

impl From<i32> for Value[src]

impl From<i64> for Value[src]

impl From<isize> for Value[src]

impl From<f32> for Value[src]

impl From<f64> for Value[src]

impl From<bool> for Value[src]

impl From<String> for Value[src]

impl Display for Value[src]

impl Debug for Value[src]

Auto Trait Implementations

impl Unpin for Value

impl Sync for Value

impl Send for Value

impl UnwindSafe for Value

impl RefUnwindSafe for Value

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]