[][src]Enum stk::Value

pub enum Value {
    Unit,
    String(String),
    Array(Vec<Value>),
    Object(HashMap<String, Value>),
    Integer(i64),
    Float(f64),
    Bool(bool),
    Char(char),
    External(Any),
    Type(Hash),
    Fn(Hash),
}

A value peeked out of the stack.

Variants

Unit

An empty unit.

String(String)

A string.

Array(Vec<Value>)

An array.

Object(HashMap<String, Value>)

An object.

Integer(i64)

An integer.

Float(f64)

A float.

Bool(bool)

A boolean.

Char(char)

A character.

External(Any)

Reference to an external type.

Type(Hash)

A type to a different value.

Fn(Hash)

A function.

Trait Implementations

impl Debug for Value[src]

impl FromValue for Value[src]

Auto Trait Implementations

impl RefUnwindSafe for Value

impl !Send for Value

impl !Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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<V, T> VZip<V> for T where
    V: MultiLane<T>,