soroban_env_common

Trait TryFromVal

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

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

Source§

type Error = Error

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

type Error = Error

Source§

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

Source§

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

Source§

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

Source§

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>

Source§

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 ()

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

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

Source§

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

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

Source§

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

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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]

Source§

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]

Source§

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

Source§

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

Source§

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

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

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

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 Val

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 Val

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 Val

Source§

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

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

Source§

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

Source§

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

Source§

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

Source§

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

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

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

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

Source§

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

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

Source§

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

Source§

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

Source§

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

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

Source§

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

Source§

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

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

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

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

Source§

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

Source§

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

Source§

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

Source§

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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