[][src]Trait runestick::FromValue

pub trait FromValue: Sized {
    fn from_value(value: ValuePtr, vm: &mut Vm) -> Result<Self, VmError>;
}

Trait for converting from a value.

Required methods

fn from_value(value: ValuePtr, vm: &mut Vm) -> Result<Self, VmError>

Try to convert to the given type, from the given value.

Loading content...

Implementations on Foreign Types

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

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

impl FromValue for bool[src]

impl FromValue for char[src]

impl FromValue for u8[src]

impl FromValue for u32[src]

impl FromValue for u64[src]

impl FromValue for u128[src]

impl FromValue for usize[src]

impl FromValue for i8[src]

impl FromValue for i32[src]

impl FromValue for i64[src]

impl FromValue for i128[src]

impl FromValue for isize[src]

impl FromValue for f64[src]

impl FromValue for f32[src]

impl FromValue for String[src]

impl FromValue for Box<str>[src]

impl<H, G, F, E, D, C, B, A> FromValue for (H, G, F, E, D, C, B, A) where
    H: FromValue,
    G: FromValue,
    F: FromValue,
    E: FromValue,
    D: FromValue,
    C: FromValue,
    B: FromValue,
    A: FromValue
[src]

impl<G, F, E, D, C, B, A> FromValue for (G, F, E, D, C, B, A) where
    G: FromValue,
    F: FromValue,
    E: FromValue,
    D: FromValue,
    C: FromValue,
    B: FromValue,
    A: FromValue
[src]

impl<F, E, D, C, B, A> FromValue for (F, E, D, C, B, A) where
    F: FromValue,
    E: FromValue,
    D: FromValue,
    C: FromValue,
    B: FromValue,
    A: FromValue
[src]

impl<E, D, C, B, A> FromValue for (E, D, C, B, A) where
    E: FromValue,
    D: FromValue,
    C: FromValue,
    B: FromValue,
    A: FromValue
[src]

impl<D, C, B, A> FromValue for (D, C, B, A) where
    D: FromValue,
    C: FromValue,
    B: FromValue,
    A: FromValue
[src]

impl<C, B, A> FromValue for (C, B, A) where
    C: FromValue,
    B: FromValue,
    A: FromValue
[src]

impl<B, A> FromValue for (B, A) where
    B: FromValue,
    A: FromValue
[src]

impl<A> FromValue for (A,) where
    A: FromValue
[src]

impl FromValue for ()[src]

Loading content...

Implementors

impl FromValue for Value[src]

impl FromValue for ValuePtr[src]

impl FromValue for Bytes[src]

impl FromValue for Any[src]

impl FromValue for Unit[src]

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

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

Loading content...