pub trait TryFromVal<E: Env, V: ?Sized>: Sized {
    type Error: Debug + Into<Error>;

    // Required method
    fn try_from_val(env: &E, v: &V) -> Result<Self, Self::Error>;
}
Expand description

Trait for types that can be fallibly converted to another type V, analogous to the standard Rust type TryFrom, but making use of the provided Env implementation E in order to convert parts of the type that require it. Mainly this exists because Val types that contain object handles need to delegate to the environment to look up and extract the content of those handles.

Required Associated Types§

Required Methods§

source

fn try_from_val(env: &E, v: &V) -> Result<Self, Self::Error>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<E: Env> TryFromVal<E, ()> for [Val; 0]

§

type Error = Error

source§

fn try_from_val(_env: &E, _v: &()) -> Result<Self, Self::Error>

source§

impl<E: Env> TryFromVal<E, DurationVal> for u64

§

type Error = Error

source§

fn try_from_val(env: &E, val: &DurationVal) -> Result<Self, Self::Error>

source§

impl<E: Env> TryFromVal<E, TimepointVal> for u64

§

type Error = Error

source§

fn try_from_val(env: &E, val: &TimepointVal) -> Result<Self, Self::Error>

source§

impl<E: Env> TryFromVal<E, U64Val> for u64

§

type Error = Error

source§

fn try_from_val(env: &E, val: &U64Val) -> Result<Self, Self::Error>

source§

impl<E: Env> TryFromVal<E, BytesObject> for Vec<u8>

§

type Error = Error

source§

fn try_from_val(env: &E, val: &BytesObject) -> Result<Self, Self::Error>

source§

impl<E: Env> TryFromVal<E, StringObject> for String

§

type Error = Error

source§

fn try_from_val(env: &E, v: &StringObject) -> Result<Self, Self::Error>

source§

impl<E: Env> TryFromVal<E, Val> for bool

§

type Error = ConversionError

source§

fn try_from_val(_env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env> TryFromVal<E, Val> for i32

§

type Error = ConversionError

source§

fn try_from_val(_env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env> TryFromVal<E, Val> for i64

§

type Error = Error

source§

fn try_from_val(env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env> TryFromVal<E, Val> for i128

§

type Error = Error

source§

fn try_from_val(env: &E, v: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env> TryFromVal<E, Val> for u32

§

type Error = ConversionError

source§

fn try_from_val(_env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env> TryFromVal<E, Val> for u64

§

type Error = Error

source§

fn try_from_val(env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env> TryFromVal<E, Val> for u128

§

type Error = Error

source§

fn try_from_val(env: &E, v: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env> TryFromVal<E, Val> for ()

§

type Error = ConversionError

source§

fn try_from_val(_env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env> TryFromVal<E, Val> for String

§

type Error = Error

source§

fn try_from_val(env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env> TryFromVal<E, Val> for Vec<u8>

§

type Error = Error

source§

fn try_from_val(env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env> TryFromVal<E, [Val; 0]> for ()

§

type Error = Error

source§

fn try_from_val(_env: &E, _val: &[Val; 0]) -> Result<Self, Self::Error>

source§

impl<E: Env, T0> TryFromVal<E, Val> for (T0,)
where T0: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1> TryFromVal<E, Val> for (T0, T1)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2> TryFromVal<E, Val> for (T0, T1, T2)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3> TryFromVal<E, Val> for (T0, T1, T2, T3)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>, T3: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, T4> TryFromVal<E, Val> for (T0, T1, T2, T3, T4)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>, T3: TryFromVal<E, Val>, T4: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, T4, T5> TryFromVal<E, Val> for (T0, T1, T2, T3, T4, T5)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>, T3: TryFromVal<E, Val>, T4: TryFromVal<E, Val>, T5: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6> TryFromVal<E, Val> for (T0, T1, T2, T3, T4, T5, T6)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>, T3: TryFromVal<E, Val>, T4: TryFromVal<E, Val>, T5: TryFromVal<E, Val>, T6: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7> TryFromVal<E, Val> for (T0, T1, T2, T3, T4, T5, T6, T7)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>, T3: TryFromVal<E, Val>, T4: TryFromVal<E, Val>, T5: TryFromVal<E, Val>, T6: TryFromVal<E, Val>, T7: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, T8> TryFromVal<E, Val> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>, T3: TryFromVal<E, Val>, T4: TryFromVal<E, Val>, T5: TryFromVal<E, Val>, T6: TryFromVal<E, Val>, T7: TryFromVal<E, Val>, T8: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> TryFromVal<E, Val> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>, T3: TryFromVal<E, Val>, T4: TryFromVal<E, Val>, T5: TryFromVal<E, Val>, T6: TryFromVal<E, Val>, T7: TryFromVal<E, Val>, T8: TryFromVal<E, Val>, T9: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> TryFromVal<E, Val> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>, T3: TryFromVal<E, Val>, T4: TryFromVal<E, Val>, T5: TryFromVal<E, Val>, T6: TryFromVal<E, Val>, T7: TryFromVal<E, Val>, T8: TryFromVal<E, Val>, T9: TryFromVal<E, Val>, T10: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> TryFromVal<E, Val> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>, T3: TryFromVal<E, Val>, T4: TryFromVal<E, Val>, T5: TryFromVal<E, Val>, T6: TryFromVal<E, Val>, T7: TryFromVal<E, Val>, T8: TryFromVal<E, Val>, T9: TryFromVal<E, Val>, T10: TryFromVal<E, Val>, T11: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> TryFromVal<E, Val> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>, T3: TryFromVal<E, Val>, T4: TryFromVal<E, Val>, T5: TryFromVal<E, Val>, T6: TryFromVal<E, Val>, T7: TryFromVal<E, Val>, T8: TryFromVal<E, Val>, T9: TryFromVal<E, Val>, T10: TryFromVal<E, Val>, T11: TryFromVal<E, Val>, T12: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, const N: usize> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> for [Val; N]
where Val: TryFromVal<E, T0> + TryFromVal<E, T1> + TryFromVal<E, T2> + TryFromVal<E, T3> + TryFromVal<E, T4> + TryFromVal<E, T5> + TryFromVal<E, T6> + TryFromVal<E, T7> + TryFromVal<E, T8> + TryFromVal<E, T9> + TryFromVal<E, T10> + TryFromVal<E, T11> + TryFromVal<E, T12>,

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, const N: usize> TryFromVal<E, [Val; N]> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>, T3: TryFromVal<E, Val>, T4: TryFromVal<E, Val>, T5: TryFromVal<E, Val>, T6: TryFromVal<E, Val>, T7: TryFromVal<E, Val>, T8: TryFromVal<E, Val>, T9: TryFromVal<E, Val>, T10: TryFromVal<E, Val>, T11: TryFromVal<E, Val>, T12: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &[Val; N]) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, const N: usize> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> for [Val; N]
where Val: TryFromVal<E, T0> + TryFromVal<E, T1> + TryFromVal<E, T2> + TryFromVal<E, T3> + TryFromVal<E, T4> + TryFromVal<E, T5> + TryFromVal<E, T6> + TryFromVal<E, T7> + TryFromVal<E, T8> + TryFromVal<E, T9> + TryFromVal<E, T10> + TryFromVal<E, T11>,

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, const N: usize> TryFromVal<E, [Val; N]> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>, T3: TryFromVal<E, Val>, T4: TryFromVal<E, Val>, T5: TryFromVal<E, Val>, T6: TryFromVal<E, Val>, T7: TryFromVal<E, Val>, T8: TryFromVal<E, Val>, T9: TryFromVal<E, Val>, T10: TryFromVal<E, Val>, T11: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &[Val; N]) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, const N: usize> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> for [Val; N]
where Val: TryFromVal<E, T0> + TryFromVal<E, T1> + TryFromVal<E, T2> + TryFromVal<E, T3> + TryFromVal<E, T4> + TryFromVal<E, T5> + TryFromVal<E, T6> + TryFromVal<E, T7> + TryFromVal<E, T8> + TryFromVal<E, T9> + TryFromVal<E, T10>,

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, const N: usize> TryFromVal<E, [Val; N]> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>, T3: TryFromVal<E, Val>, T4: TryFromVal<E, Val>, T5: TryFromVal<E, Val>, T6: TryFromVal<E, Val>, T7: TryFromVal<E, Val>, T8: TryFromVal<E, Val>, T9: TryFromVal<E, Val>, T10: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &[Val; N]) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, const N: usize> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)> for [Val; N]
where Val: TryFromVal<E, T0> + TryFromVal<E, T1> + TryFromVal<E, T2> + TryFromVal<E, T3> + TryFromVal<E, T4> + TryFromVal<E, T5> + TryFromVal<E, T6> + TryFromVal<E, T7> + TryFromVal<E, T8> + TryFromVal<E, T9>,

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, const N: usize> TryFromVal<E, [Val; N]> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>, T3: TryFromVal<E, Val>, T4: TryFromVal<E, Val>, T5: TryFromVal<E, Val>, T6: TryFromVal<E, Val>, T7: TryFromVal<E, Val>, T8: TryFromVal<E, Val>, T9: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &[Val; N]) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, T8, const N: usize> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7, T8)> for [Val; N]
where Val: TryFromVal<E, T0> + TryFromVal<E, T1> + TryFromVal<E, T2> + TryFromVal<E, T3> + TryFromVal<E, T4> + TryFromVal<E, T5> + TryFromVal<E, T6> + TryFromVal<E, T7> + TryFromVal<E, T8>,

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, T8, const N: usize> TryFromVal<E, [Val; N]> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>, T3: TryFromVal<E, Val>, T4: TryFromVal<E, Val>, T5: TryFromVal<E, Val>, T6: TryFromVal<E, Val>, T7: TryFromVal<E, Val>, T8: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &[Val; N]) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, const N: usize> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7)> for [Val; N]
where Val: TryFromVal<E, T0> + TryFromVal<E, T1> + TryFromVal<E, T2> + TryFromVal<E, T3> + TryFromVal<E, T4> + TryFromVal<E, T5> + TryFromVal<E, T6> + TryFromVal<E, T7>,

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, const N: usize> TryFromVal<E, [Val; N]> for (T0, T1, T2, T3, T4, T5, T6, T7)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>, T3: TryFromVal<E, Val>, T4: TryFromVal<E, Val>, T5: TryFromVal<E, Val>, T6: TryFromVal<E, Val>, T7: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &[Val; N]) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, const N: usize> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6)> for [Val; N]
where Val: TryFromVal<E, T0> + TryFromVal<E, T1> + TryFromVal<E, T2> + TryFromVal<E, T3> + TryFromVal<E, T4> + TryFromVal<E, T5> + TryFromVal<E, T6>,

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, const N: usize> TryFromVal<E, [Val; N]> for (T0, T1, T2, T3, T4, T5, T6)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>, T3: TryFromVal<E, Val>, T4: TryFromVal<E, Val>, T5: TryFromVal<E, Val>, T6: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &[Val; N]) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, const N: usize> TryFromVal<E, (T0, T1, T2, T3, T4, T5)> for [Val; N]
where Val: TryFromVal<E, T0> + TryFromVal<E, T1> + TryFromVal<E, T2> + TryFromVal<E, T3> + TryFromVal<E, T4> + TryFromVal<E, T5>,

§

type Error = Error

source§

fn try_from_val( env: &E, val: &(T0, T1, T2, T3, T4, T5) ) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, const N: usize> TryFromVal<E, [Val; N]> for (T0, T1, T2, T3, T4, T5)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>, T3: TryFromVal<E, Val>, T4: TryFromVal<E, Val>, T5: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &[Val; N]) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, T4, const N: usize> TryFromVal<E, (T0, T1, T2, T3, T4)> for [Val; N]
where Val: TryFromVal<E, T0> + TryFromVal<E, T1> + TryFromVal<E, T2> + TryFromVal<E, T3> + TryFromVal<E, T4>,

§

type Error = Error

source§

fn try_from_val( env: &E, val: &(T0, T1, T2, T3, T4) ) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, T4, const N: usize> TryFromVal<E, [Val; N]> for (T0, T1, T2, T3, T4)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>, T3: TryFromVal<E, Val>, T4: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &[Val; N]) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, const N: usize> TryFromVal<E, (T0, T1, T2, T3)> for [Val; N]
where Val: TryFromVal<E, T0> + TryFromVal<E, T1> + TryFromVal<E, T2> + TryFromVal<E, T3>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &(T0, T1, T2, T3)) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, T3, const N: usize> TryFromVal<E, [Val; N]> for (T0, T1, T2, T3)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>, T3: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &[Val; N]) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, const N: usize> TryFromVal<E, (T0, T1, T2)> for [Val; N]
where Val: TryFromVal<E, T0> + TryFromVal<E, T1> + TryFromVal<E, T2>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &(T0, T1, T2)) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, T2, const N: usize> TryFromVal<E, [Val; N]> for (T0, T1, T2)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>, T2: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &[Val; N]) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, const N: usize> TryFromVal<E, (T0, T1)> for [Val; N]
where Val: TryFromVal<E, T0> + TryFromVal<E, T1>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &(T0, T1)) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, T1, const N: usize> TryFromVal<E, [Val; N]> for (T0, T1)
where T0: TryFromVal<E, Val>, T1: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &[Val; N]) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, const N: usize> TryFromVal<E, (T0,)> for [Val; N]
where Val: TryFromVal<E, T0>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &(T0,)) -> Result<Self, Self::Error>

source§

impl<E: Env, T0, const N: usize> TryFromVal<E, [Val; N]> for (T0,)
where T0: TryFromVal<E, Val>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &[Val; N]) -> Result<Self, Self::Error>

source§

impl<E: Env, T> TryFromVal<E, Val> for Option<T>
where T: TryFromVal<E, Val>,

§

type Error = <T as TryFromVal<E, Val>>::Error

source§

fn try_from_val(env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env, T, R> TryFromVal<E, Val> for Result<T, R>
where T: TryFromVal<E, Val>, R: TryFrom<Error>, <R as TryFrom<Error>>::Error: Into<Error>,

§

type Error = Error

source§

fn try_from_val(env: &E, val: &Val) -> Result<Self, Self::Error>

source§

impl<E: Env, const N: usize> TryFromVal<E, BytesObject> for [u8; N]

§

type Error = Error

source§

fn try_from_val(env: &E, val: &BytesObject) -> Result<Self, Self::Error>

source§

impl<E: Env, const N: usize> TryFromVal<E, Val> for [u8; N]

§

type Error = Error

source§

fn try_from_val(env: &E, val: &Val) -> Result<Self, Self::Error>

Implementors§

source§

impl<'a, E> TryFromVal<E, ScValObjRef<'a>> for Object
where E: Env + Convert<ScValObjRef<'a>, Object>,

§

type Error = Error

source§

impl<E> TryFromVal<E, Object> for ScValObject

source§

impl<E: Env> TryFromVal<E, &ScVal> for Symbol

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, &str> for StringObject

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, &str> for Symbol

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, &str> for Val

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, &ScSymbol> for Symbol

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, &[u8]> for BytesObject

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, &[u8]> for Symbol

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, &[u8]> for Val

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, ScVal> for Symbol

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, ScVal> for Val
where Object: for<'a> TryFromVal<E, ScValObjRef<'a>>, for<'a> <Object as TryFromVal<E, ScValObjRef<'a>>>::Error: Into<Error>,

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, bool> for Val

source§

impl<E: Env> TryFromVal<E, i32> for Val

source§

impl<E: Env> TryFromVal<E, i64> for Val

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, i128> for I128Val

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, i128> for Val

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, u32> for Val

source§

impl<E: Env> TryFromVal<E, u64> for DurationVal

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, u64> for TimepointVal

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, u64> for U64Val

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, u64> for Val

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, u128> for U128Val

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, u128> for Val

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, ()> for Val

source§

impl<E: Env> TryFromVal<E, String> for StringObject

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, String> for Val

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, Vec<u8>> for BytesObject

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, Vec<u8>> for Val

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, DurationObject> for Val

source§

impl<E: Env> TryFromVal<E, DurationSmall> for Val

source§

impl<E: Env> TryFromVal<E, DurationVal> for Val

source§

impl<E: Env> TryFromVal<E, I32Val> for Val

source§

impl<E: Env> TryFromVal<E, I64Object> for Val

source§

impl<E: Env> TryFromVal<E, I64Small> for Val

source§

impl<E: Env> TryFromVal<E, I64Val> for Val

source§

impl<E: Env> TryFromVal<E, I128Object> for Val

source§

impl<E: Env> TryFromVal<E, I128Small> for Val

source§

impl<E: Env> TryFromVal<E, I128Val> for Val

source§

impl<E: Env> TryFromVal<E, I256Object> for Val

source§

impl<E: Env> TryFromVal<E, I256Small> for Val

source§

impl<E: Env> TryFromVal<E, I256Val> for Val

source§

impl<E: Env> TryFromVal<E, TimepointObject> for Val

source§

impl<E: Env> TryFromVal<E, TimepointSmall> for Val

source§

impl<E: Env> TryFromVal<E, TimepointVal> for Val

source§

impl<E: Env> TryFromVal<E, U32Val> for Val

source§

impl<E: Env> TryFromVal<E, U64Object> for Val

source§

impl<E: Env> TryFromVal<E, U64Small> for Val

source§

impl<E: Env> TryFromVal<E, U64Val> for Val

source§

impl<E: Env> TryFromVal<E, U128Object> for Val

source§

impl<E: Env> TryFromVal<E, U128Small> for Val

source§

impl<E: Env> TryFromVal<E, U128Val> for Val

source§

impl<E: Env> TryFromVal<E, U256Object> for Val

source§

impl<E: Env> TryFromVal<E, U256Small> for Val

source§

impl<E: Env> TryFromVal<E, U256Val> for Val

source§

impl<E: Env> TryFromVal<E, AddressObject> for Val

source§

impl<E: Env> TryFromVal<E, Bool> for Val

source§

impl<E: Env> TryFromVal<E, BytesObject> for Val

source§

impl<E: Env> TryFromVal<E, Error> for Val

source§

impl<E: Env> TryFromVal<E, I256> for I256Val

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, I256> for Val

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, MapObject> for Val

source§

impl<E: Env> TryFromVal<E, Object> for Val

source§

impl<E: Env> TryFromVal<E, StringObject> for Val

source§

impl<E: Env> TryFromVal<E, Symbol> for ScVal

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, Symbol> for SymbolStr

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, Symbol> for Val

source§

impl<E: Env> TryFromVal<E, Symbol> for ScSymbol

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, SymbolObject> for Val

source§

impl<E: Env> TryFromVal<E, SymbolSmall> for Val

source§

impl<E: Env> TryFromVal<E, U256> for U256Val

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, U256> for Val

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, Val> for ScVal

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, Val> for DurationObject

source§

impl<E: Env> TryFromVal<E, Val> for DurationSmall

source§

impl<E: Env> TryFromVal<E, Val> for DurationVal

source§

impl<E: Env> TryFromVal<E, Val> for I32Val

source§

impl<E: Env> TryFromVal<E, Val> for I64Object

source§

impl<E: Env> TryFromVal<E, Val> for I64Small

source§

impl<E: Env> TryFromVal<E, Val> for I64Val

source§

impl<E: Env> TryFromVal<E, Val> for I128Object

source§

impl<E: Env> TryFromVal<E, Val> for I128Small

source§

impl<E: Env> TryFromVal<E, Val> for I128Val

source§

impl<E: Env> TryFromVal<E, Val> for I256Object

source§

impl<E: Env> TryFromVal<E, Val> for I256Small

source§

impl<E: Env> TryFromVal<E, Val> for I256Val

source§

impl<E: Env> TryFromVal<E, Val> for TimepointObject

source§

impl<E: Env> TryFromVal<E, Val> for TimepointSmall

source§

impl<E: Env> TryFromVal<E, Val> for TimepointVal

source§

impl<E: Env> TryFromVal<E, Val> for U32Val

source§

impl<E: Env> TryFromVal<E, Val> for U64Object

source§

impl<E: Env> TryFromVal<E, Val> for U64Small

source§

impl<E: Env> TryFromVal<E, Val> for U64Val

source§

impl<E: Env> TryFromVal<E, Val> for U128Object

source§

impl<E: Env> TryFromVal<E, Val> for U128Small

source§

impl<E: Env> TryFromVal<E, Val> for U128Val

source§

impl<E: Env> TryFromVal<E, Val> for U256Object

source§

impl<E: Env> TryFromVal<E, Val> for U256Small

source§

impl<E: Env> TryFromVal<E, Val> for U256Val

source§

impl<E: Env> TryFromVal<E, Val> for AddressObject

source§

impl<E: Env> TryFromVal<E, Val> for Bool

source§

impl<E: Env> TryFromVal<E, Val> for BytesObject

source§

impl<E: Env> TryFromVal<E, Val> for Error

source§

impl<E: Env> TryFromVal<E, Val> for I256

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, Val> for MapObject

source§

impl<E: Env> TryFromVal<E, Val> for Object

source§

impl<E: Env> TryFromVal<E, Val> for StringObject

source§

impl<E: Env> TryFromVal<E, Val> for Symbol

source§

impl<E: Env> TryFromVal<E, Val> for SymbolObject

source§

impl<E: Env> TryFromVal<E, Val> for SymbolSmall

source§

impl<E: Env> TryFromVal<E, Val> for U256

§

type Error = Error

source§

impl<E: Env> TryFromVal<E, Val> for Val

source§

impl<E: Env> TryFromVal<E, Val> for VecObject

source§

impl<E: Env> TryFromVal<E, Val> for Void

source§

impl<E: Env> TryFromVal<E, VecObject> for Val

source§

impl<E: Env> TryFromVal<E, Void> for Val

source§

impl<E: Env> TryFromVal<E, ScSymbol> for Symbol

§

type Error = Error

source§

impl<E: Env, T0> TryFromVal<E, (T0,)> for Val
where T0: TryIntoVal<E, Val>,

§

type Error = Error

source§

impl<E: Env, T0, T1> TryFromVal<E, (T0, T1)> for Val
where T0: TryIntoVal<E, Val>, T1: TryIntoVal<E, Val>,

§

type Error = Error

source§

impl<E: Env, T0, T1, T2> TryFromVal<E, (T0, T1, T2)> for Val
where T0: TryIntoVal<E, Val>, T1: TryIntoVal<E, Val>, T2: TryIntoVal<E, Val>,

§

type Error = Error

source§

impl<E: Env, T0, T1, T2, T3> TryFromVal<E, (T0, T1, T2, T3)> for Val
where T0: TryIntoVal<E, Val>, T1: TryIntoVal<E, Val>, T2: TryIntoVal<E, Val>, T3: TryIntoVal<E, Val>,

§

type Error = Error

source§

impl<E: Env, T0, T1, T2, T3, T4> TryFromVal<E, (T0, T1, T2, T3, T4)> for Val
where T0: TryIntoVal<E, Val>, T1: TryIntoVal<E, Val>, T2: TryIntoVal<E, Val>, T3: TryIntoVal<E, Val>, T4: TryIntoVal<E, Val>,

§

type Error = Error

source§

impl<E: Env, T0, T1, T2, T3, T4, T5> TryFromVal<E, (T0, T1, T2, T3, T4, T5)> for Val
where T0: TryIntoVal<E, Val>, T1: TryIntoVal<E, Val>, T2: TryIntoVal<E, Val>, T3: TryIntoVal<E, Val>, T4: TryIntoVal<E, Val>, T5: TryIntoVal<E, Val>,

§

type Error = Error

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6)> for Val
where T0: TryIntoVal<E, Val>, T1: TryIntoVal<E, Val>, T2: TryIntoVal<E, Val>, T3: TryIntoVal<E, Val>, T4: TryIntoVal<E, Val>, T5: TryIntoVal<E, Val>, T6: TryIntoVal<E, Val>,

§

type Error = Error

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7)> for Val
where T0: TryIntoVal<E, Val>, T1: TryIntoVal<E, Val>, T2: TryIntoVal<E, Val>, T3: TryIntoVal<E, Val>, T4: TryIntoVal<E, Val>, T5: TryIntoVal<E, Val>, T6: TryIntoVal<E, Val>, T7: TryIntoVal<E, Val>,

§

type Error = Error

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, T8> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7, T8)> for Val
where T0: TryIntoVal<E, Val>, T1: TryIntoVal<E, Val>, T2: TryIntoVal<E, Val>, T3: TryIntoVal<E, Val>, T4: TryIntoVal<E, Val>, T5: TryIntoVal<E, Val>, T6: TryIntoVal<E, Val>, T7: TryIntoVal<E, Val>, T8: TryIntoVal<E, Val>,

§

type Error = Error

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)> for Val
where T0: TryIntoVal<E, Val>, T1: TryIntoVal<E, Val>, T2: TryIntoVal<E, Val>, T3: TryIntoVal<E, Val>, T4: TryIntoVal<E, Val>, T5: TryIntoVal<E, Val>, T6: TryIntoVal<E, Val>, T7: TryIntoVal<E, Val>, T8: TryIntoVal<E, Val>, T9: TryIntoVal<E, Val>,

§

type Error = Error

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> for Val
where T0: TryIntoVal<E, Val>, T1: TryIntoVal<E, Val>, T2: TryIntoVal<E, Val>, T3: TryIntoVal<E, Val>, T4: TryIntoVal<E, Val>, T5: TryIntoVal<E, Val>, T6: TryIntoVal<E, Val>, T7: TryIntoVal<E, Val>, T8: TryIntoVal<E, Val>, T9: TryIntoVal<E, Val>, T10: TryIntoVal<E, Val>,

§

type Error = Error

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> for Val
where T0: TryIntoVal<E, Val>, T1: TryIntoVal<E, Val>, T2: TryIntoVal<E, Val>, T3: TryIntoVal<E, Val>, T4: TryIntoVal<E, Val>, T5: TryIntoVal<E, Val>, T6: TryIntoVal<E, Val>, T7: TryIntoVal<E, Val>, T8: TryIntoVal<E, Val>, T9: TryIntoVal<E, Val>, T10: TryIntoVal<E, Val>, T11: TryIntoVal<E, Val>,

§

type Error = Error

source§

impl<E: Env, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> for Val
where T0: TryIntoVal<E, Val>, T1: TryIntoVal<E, Val>, T2: TryIntoVal<E, Val>, T3: TryIntoVal<E, Val>, T4: TryIntoVal<E, Val>, T5: TryIntoVal<E, Val>, T6: TryIntoVal<E, Val>, T7: TryIntoVal<E, Val>, T8: TryIntoVal<E, Val>, T9: TryIntoVal<E, Val>, T10: TryIntoVal<E, Val>, T11: TryIntoVal<E, Val>, T12: TryIntoVal<E, Val>,

§

type Error = Error

source§

impl<E: Env, T> TryFromVal<E, Option<T>> for Val
where T: TryIntoVal<E, Val>,

§

type Error = <T as TryIntoVal<E, Val>>::Error

source§

impl<E: Env, T, R> TryFromVal<E, Result<T, R>> for Val
where Val: TryFromVal<E, T>, for<'a> &'a R: TryInto<Error>, for<'a> <&'a R as TryInto<Error>>::Error: Into<Error>,

§

type Error = Error

source§

impl<E: Env, const N: usize> TryFromVal<E, [u8; N]> for BytesObject

§

type Error = Error

source§

impl<E: Env, const N: usize> TryFromVal<E, [u8; N]> for Val

§

type Error = Error