[][src]Trait stk::ToValue

pub trait ToValue: Sized {
    fn to_value(self, vm: &mut Vm) -> Result<ValuePtr, StackError>;
}

Trait for converting types into values.

Required methods

fn to_value(self, vm: &mut Vm) -> Result<ValuePtr, StackError>

Convert into a value.

Loading content...

Implementations on Foreign Types

impl<T> ToValue for HashMap<String, T> where
    T: ToValue
[src]

impl<T> ToValue for Option<T> where
    T: ToValue
[src]

impl ToValue for ()[src]

impl ToValue for bool[src]

impl ToValue for char[src]

impl ToValue for u8[src]

impl ToValue for u32[src]

impl ToValue for u64[src]

impl ToValue for u128[src]

impl ToValue for usize[src]

impl ToValue for i8[src]

impl ToValue for i32[src]

impl ToValue for i64[src]

impl ToValue for i128[src]

impl ToValue for isize[src]

impl ToValue for f64[src]

impl ToValue for f32[src]

impl ToValue for String[src]

impl ToValue for Box<str>[src]

Loading content...

Implementors

impl ToValue for ValuePtr[src]

impl ToValue for Bytes[src]

impl ToValue for Unit[src]

impl<T> ToValue for Array<T> where
    T: ToValue
[src]

impl<T> ToValue for Object<T> where
    T: ToValue
[src]

Loading content...