[][src]Trait runestick::FromValue

pub trait FromValue: 'static + Sized {
    pub fn from_value(value: Value) -> Result<Self, VmError>;
}

Trait for converting from a value.

Required methods

pub fn from_value(value: Value) -> Result<Self, VmError>[src]

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

Loading content...

Implementations on Foreign Types

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

impl FromValue for String[src]

impl FromValue for Box<str>[src]

impl<T, E> FromValue for Result<T, E> where
    T: FromValue,
    E: FromValue
[src]

impl FromValue for ()[src]

impl FromValue for u8[src]

impl FromValue for bool[src]

impl FromValue for char[src]

impl FromValue for i64[src]

impl FromValue for u16[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 i16[src]

impl FromValue for i32[src]

impl FromValue for i128[src]

impl FromValue for isize[src]

impl FromValue for f64[src]

impl FromValue for f32[src]

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

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> FromValue for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P) where
    A: FromValue,
    B: FromValue,
    C: FromValue,
    D: FromValue,
    E: FromValue,
    F: FromValue,
    G: FromValue,
    H: FromValue,
    I: FromValue,
    J: FromValue,
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> FromValue for (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P) where
    B: FromValue,
    C: FromValue,
    D: FromValue,
    E: FromValue,
    F: FromValue,
    G: FromValue,
    H: FromValue,
    I: FromValue,
    J: FromValue,
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<C, D, E, F, G, H, I, J, K, L, M, N, O, P> FromValue for (C, D, E, F, G, H, I, J, K, L, M, N, O, P) where
    C: FromValue,
    D: FromValue,
    E: FromValue,
    F: FromValue,
    G: FromValue,
    H: FromValue,
    I: FromValue,
    J: FromValue,
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<D, E, F, G, H, I, J, K, L, M, N, O, P> FromValue for (D, E, F, G, H, I, J, K, L, M, N, O, P) where
    D: FromValue,
    E: FromValue,
    F: FromValue,
    G: FromValue,
    H: FromValue,
    I: FromValue,
    J: FromValue,
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<E, F, G, H, I, J, K, L, M, N, O, P> FromValue for (E, F, G, H, I, J, K, L, M, N, O, P) where
    E: FromValue,
    F: FromValue,
    G: FromValue,
    H: FromValue,
    I: FromValue,
    J: FromValue,
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<F, G, H, I, J, K, L, M, N, O, P> FromValue for (F, G, H, I, J, K, L, M, N, O, P) where
    F: FromValue,
    G: FromValue,
    H: FromValue,
    I: FromValue,
    J: FromValue,
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<G, H, I, J, K, L, M, N, O, P> FromValue for (G, H, I, J, K, L, M, N, O, P) where
    G: FromValue,
    H: FromValue,
    I: FromValue,
    J: FromValue,
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<H, I, J, K, L, M, N, O, P> FromValue for (H, I, J, K, L, M, N, O, P) where
    H: FromValue,
    I: FromValue,
    J: FromValue,
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<I, J, K, L, M, N, O, P> FromValue for (I, J, K, L, M, N, O, P) where
    I: FromValue,
    J: FromValue,
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<J, K, L, M, N, O, P> FromValue for (J, K, L, M, N, O, P) where
    J: FromValue,
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<K, L, M, N, O, P> FromValue for (K, L, M, N, O, P) where
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<L, M, N, O, P> FromValue for (L, M, N, O, P) where
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<M, N, O, P> FromValue for (M, N, O, P) where
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<N, O, P> FromValue for (N, O, P) where
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

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

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

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

Loading content...

Implementors

impl FromValue for ConstValue[src]

impl FromValue for GeneratorState[src]

impl FromValue for Key[src]

impl FromValue for Value[src]

impl FromValue for Format[src]

impl FromValue for Bytes[src]

impl FromValue for Future[src]

impl FromValue for Generator[src]

impl FromValue for Iterator[src]

impl FromValue for Mut<Object>[src]

impl FromValue for Mut<Range>[src]

impl FromValue for Mut<Tuple>[src]

impl FromValue for Mut<Vec>[src]

impl FromValue for Mut<String>[src]

impl FromValue for Object[src]

impl FromValue for Range[src]

impl FromValue for Ref<Object>[src]

impl FromValue for Ref<Range>[src]

impl FromValue for Ref<Tuple>[src]

impl FromValue for Ref<Vec>[src]

impl FromValue for Ref<String>[src]

impl FromValue for Ref<Function>[src]

impl FromValue for Shared<GeneratorState>[src]

impl FromValue for Shared<AnyObj>[src]

impl FromValue for Shared<Future>[src]

impl FromValue for Shared<Generator>[src]

impl FromValue for Shared<Stream>[src]

impl FromValue for Shared<Function>[src]

impl FromValue for Stream[src]

impl FromValue for Tuple[src]

impl FromValue for runestick::Vec[src]

impl FromValue for Function[src]

impl FromValue for SyncFunction[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> FromValue for VecTuple<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)> where
    A: FromValue,
    B: FromValue,
    C: FromValue,
    D: FromValue,
    E: FromValue,
    F: FromValue,
    G: FromValue,
    H: FromValue,
    I: FromValue,
    J: FromValue,
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> FromValue for VecTuple<(B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)> where
    B: FromValue,
    C: FromValue,
    D: FromValue,
    E: FromValue,
    F: FromValue,
    G: FromValue,
    H: FromValue,
    I: FromValue,
    J: FromValue,
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<C, D, E, F, G, H, I, J, K, L, M, N, O, P> FromValue for VecTuple<(C, D, E, F, G, H, I, J, K, L, M, N, O, P)> where
    C: FromValue,
    D: FromValue,
    E: FromValue,
    F: FromValue,
    G: FromValue,
    H: FromValue,
    I: FromValue,
    J: FromValue,
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<D, E, F, G, H, I, J, K, L, M, N, O, P> FromValue for VecTuple<(D, E, F, G, H, I, J, K, L, M, N, O, P)> where
    D: FromValue,
    E: FromValue,
    F: FromValue,
    G: FromValue,
    H: FromValue,
    I: FromValue,
    J: FromValue,
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<E, F, G, H, I, J, K, L, M, N, O, P> FromValue for VecTuple<(E, F, G, H, I, J, K, L, M, N, O, P)> where
    E: FromValue,
    F: FromValue,
    G: FromValue,
    H: FromValue,
    I: FromValue,
    J: FromValue,
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<F, G, H, I, J, K, L, M, N, O, P> FromValue for VecTuple<(F, G, H, I, J, K, L, M, N, O, P)> where
    F: FromValue,
    G: FromValue,
    H: FromValue,
    I: FromValue,
    J: FromValue,
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<G, H, I, J, K, L, M, N, O, P> FromValue for VecTuple<(G, H, I, J, K, L, M, N, O, P)> where
    G: FromValue,
    H: FromValue,
    I: FromValue,
    J: FromValue,
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<H, I, J, K, L, M, N, O, P> FromValue for VecTuple<(H, I, J, K, L, M, N, O, P)> where
    H: FromValue,
    I: FromValue,
    J: FromValue,
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<I, J, K, L, M, N, O, P> FromValue for VecTuple<(I, J, K, L, M, N, O, P)> where
    I: FromValue,
    J: FromValue,
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<J, K, L, M, N, O, P> FromValue for VecTuple<(J, K, L, M, N, O, P)> where
    J: FromValue,
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<K, L, M, N, O, P> FromValue for VecTuple<(K, L, M, N, O, P)> where
    K: FromValue,
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<L, M, N, O, P> FromValue for VecTuple<(L, M, N, O, P)> where
    L: FromValue,
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<M, N, O, P> FromValue for VecTuple<(M, N, O, P)> where
    M: FromValue,
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<N, O, P> FromValue for VecTuple<(N, O, P)> where
    N: FromValue,
    O: FromValue,
    P: FromValue
[src]

impl<O, P> FromValue for VecTuple<(O, P)> where
    O: FromValue,
    P: FromValue
[src]

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

impl<T> FromValue for Mut<T> where
    T: Any
[src]

impl<T> FromValue for Ref<T> where
    T: Any
[src]

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

Loading content...