Enum hal::state::HalState [] [src]

pub enum HalState {
    I64(i64),
    F64(f64),
    U64(u64),
    HalString(String),
    Boolean(bool),
    Null,
    List(HalList),
    Object(HalObject),
}

Represents a Hal data value

Variants

I64(i64)F64(f64)U64(u64)HalString(String)Boolean(bool)NullList(HalList)Object(HalObject)

Trait Implementations

impl Debug for HalState
[src]

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

Formats the value using the given formatter.

impl PartialEq for HalState
[src]

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

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

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

This method tests for !=.

impl Clone for HalState
[src]

fn clone(&self) -> HalState

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

impl ToJson for HalState
[src]

fn to_json(&self) -> Json

Converts the value of self to an instance of JSON