[][src]Enum stk::ValueRef

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

A value peeked out of the stack.

Variants

Unit

An empty value indicating nothing.

String(Ref<'vm, String>)

A string.

Array(Vec<ValueRef<'vm>>)

An array.

Object(HashMap<String, ValueRef<'vm>>)

An object.

Integer(i64)

An integer.

Float(f64)

A float.

Bool(bool)

A boolean.

Char(char)

A character.

External(Ref<'vm, Any>)

Reference to an external type.

Type(Hash)

Reference to a value type.

Fn(Hash)

A function.

Trait Implementations

impl<'vm> Debug for ValueRef<'vm>[src]

Auto Trait Implementations

impl<'vm> !RefUnwindSafe for ValueRef<'vm>

impl<'vm> !Send for ValueRef<'vm>

impl<'vm> !Sync for ValueRef<'vm>

impl<'vm> Unpin for ValueRef<'vm>

impl<'vm> !UnwindSafe for ValueRef<'vm>

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>,