Enum rmp::value::Value [] [src]

pub enum Value {
    Nil,
    Boolean(bool),
    Integer(Integer),
    Float(Float),
    String(String),
    Binary(Vec<u8>),
    Array(Vec<Value>),
    Map(Vec<(Value, Value)>),
    Ext(i8, Vec<u8>),
}

Variants

Nil

Nil represents nil.

Boolean

Boolean represents true or false.

Integer

Integer represents an integer.

Float

Float represents a floating point number.

String

String extending Raw type represents a UTF-8 string.

Binary

Binary extending Raw type represents a byte array.

Array

Array represents a sequence of objects.

Map

Map represents key-value pairs of objects.

Ext

Extended implements Extension interface: represents a tuple of type information and a byte array where type information is an integer whose meaning is defined by applications.

Trait Implementations

Derived Implementations

impl PartialEq for Value

fn eq(&self, __arg_0: &Value) -> bool

fn ne(&self, __arg_0: &Value) -> bool

impl Debug for Value

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Value

fn clone(&self) -> Value

fn clone_from(&mut self, source: &Self)