Struct soroban_sdk::RawVal
pub struct RawVal(_);
Expand description
Raw value of the Soroban smart contract platform that types can be converted to and from for storing, or passing between contracts.
A 64-bit value encoding a bit-packed disjoint union between several different types (numbers, booleans, symbols, object handles, etc.)
RawVals divide up the space of 64 bits according to a 2-level tagging
scheme. The first tag is a bit in the least-significant position, indicating
whether the RawVal
is a plain “u63” 63-bit unsigned integer, or some
more-structured value with a second-level tag in the next most significant 3
bits. The 63-bit unsigned integer case can also be thought of as handling
the complete range of non-negative signed 64-bit integers.
The remaining 3 bit tags are assigned to cases enumerated in [Tag], of which 7 are defined and one is currently reserved.
Schematically, the bit-assignment for RawVal
looks like this:
0x_NNNN_NNNN_NNNN_NNNX - u63, for any even X
0x_0000_000N_NNNN_NNN1 - u32
0x_0000_000N_NNNN_NNN3 - i32
0x_NNNN_NNNN_NNNN_NNN5 - static: void, true, false, ...
0x_IIII_IIII_TTTT_TTT7 - object: 32-bit index I, 28-bit type code T
0x_NNNN_NNNN_NNNN_NNN9 - symbol: up to 10 6-bit identifier characters
0x_NNNN_NNNN_NNNN_NNNb - bitset: up to 60 bits
0x_CCCC_CCCC_TTTT_TTTd - status: 32-bit code C, 28-bit type code T
0x_NNNN_NNNN_NNNN_NNNf - reserved
Implementations§
§impl RawVal
impl RawVal
pub const fn get_payload(self) -> u64
pub const fn from_payload(x: u64) -> RawVal
pub const fn shallow_eq(&self, other: &RawVal) -> bool
pub const fn is_u63(self) -> bool
pub const unsafe fn unchecked_as_u63(self) -> i64
pub const unsafe fn unchecked_from_u63(i: i64) -> RawVal
pub const fn get_tag(self) -> Tag
pub fn is<T>(self) -> boolwhere
T: RawValConvertible,
pub const fn from_void() -> RawVal
pub const fn from_bool(b: bool) -> RawVal
pub const fn from_other_static(st: ScStatic) -> RawVal
pub const fn from_u32(u: u32) -> RawVal
pub const fn from_i32(i: i32) -> RawVal
pub const fn is_i32_zero(self) -> bool
pub const fn is_u32_zero(self) -> bool
pub const fn is_void(self) -> bool
pub const fn is_true(self) -> bool
pub const fn is_false(self) -> bool
§impl RawVal
impl RawVal
pub const I32_ZERO: RawVal = RawVal::from_i32(0)
pub const I32_POSITIVE_ONE: RawVal = RawVal::from_i32(1)
pub const I32_NEGATIVE_ONE: RawVal = RawVal::from_i32(-1)
pub const I32_MIN: RawVal = RawVal::from_i32(i32::MIN)
pub const I32_MAX: RawVal = RawVal::from_i32(i32::MAX)
pub const U32_ZERO: RawVal = RawVal::from_u32(0)
pub const U32_ONE: RawVal = RawVal::from_u32(1)
pub const U32_MIN: RawVal = RawVal::from_u32(u32::MIN)
pub const U32_MAX: RawVal = RawVal::from_u32(u32::MAX)
pub const VOID: RawVal = RawVal::from_other_static(ScStatic::Void)
pub const TRUE: RawVal = RawVal::from_bool(true)
pub const FALSE: RawVal = RawVal::from_bool(false)
Trait Implementations§
source§impl<K, V> From<Map<K, V>> for RawValwhere
K: IntoVal<Env, RawVal> + TryFromVal<Env, RawVal>,
V: IntoVal<Env, RawVal> + TryFromVal<Env, RawVal>,
impl<K, V> From<Map<K, V>> for RawValwhere
K: IntoVal<Env, RawVal> + TryFromVal<Env, RawVal>,
V: IntoVal<Env, RawVal> + TryFromVal<Env, RawVal>,
§impl<E> TryFromVal<E, &[u8]> for RawValwhere
E: Env,
impl<E> TryFromVal<E, &[u8]> for RawValwhere
E: Env,
§impl<E> TryFromVal<E, &str> for RawValwhere
E: Env,
impl<E> TryFromVal<E, &str> for RawValwhere
E: Env,
type Error = ConversionError
fn try_from_val(
env: &E,
val: &&str
) -> Result<RawVal, <RawVal as TryFromVal<E, &str>>::Error>
§impl<E> TryFromVal<E, ()> for RawValwhere
E: Env,
impl<E> TryFromVal<E, ()> for RawValwhere
E: Env,
type Error = ConversionError
fn try_from_val(
_env: &E,
val: &()
) -> Result<RawVal, <RawVal as TryFromVal<E, ()>>::Error>
§impl<E, 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 RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
T3: TryIntoVal<E, RawVal>,
T4: TryIntoVal<E, RawVal>,
T5: TryIntoVal<E, RawVal>,
T6: TryIntoVal<E, RawVal>,
T7: TryIntoVal<E, RawVal>,
T8: TryIntoVal<E, RawVal>,
T9: TryIntoVal<E, RawVal>,
T10: TryIntoVal<E, RawVal>,
T11: TryIntoVal<E, RawVal>,
T12: TryIntoVal<E, RawVal>,
impl<E, 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 RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
T3: TryIntoVal<E, RawVal>,
T4: TryIntoVal<E, RawVal>,
T5: TryIntoVal<E, RawVal>,
T6: TryIntoVal<E, RawVal>,
T7: TryIntoVal<E, RawVal>,
T8: TryIntoVal<E, RawVal>,
T9: TryIntoVal<E, RawVal>,
T10: TryIntoVal<E, RawVal>,
T11: TryIntoVal<E, RawVal>,
T12: TryIntoVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
) -> Result<RawVal, <RawVal as TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)>>::Error>
§impl<E, 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 RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
T3: TryIntoVal<E, RawVal>,
T4: TryIntoVal<E, RawVal>,
T5: TryIntoVal<E, RawVal>,
T6: TryIntoVal<E, RawVal>,
T7: TryIntoVal<E, RawVal>,
T8: TryIntoVal<E, RawVal>,
T9: TryIntoVal<E, RawVal>,
T10: TryIntoVal<E, RawVal>,
T11: TryIntoVal<E, RawVal>,
impl<E, 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 RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
T3: TryIntoVal<E, RawVal>,
T4: TryIntoVal<E, RawVal>,
T5: TryIntoVal<E, RawVal>,
T6: TryIntoVal<E, RawVal>,
T7: TryIntoVal<E, RawVal>,
T8: TryIntoVal<E, RawVal>,
T9: TryIntoVal<E, RawVal>,
T10: TryIntoVal<E, RawVal>,
T11: TryIntoVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
) -> Result<RawVal, <RawVal as TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>>::Error>
§impl<E, 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 RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
T3: TryIntoVal<E, RawVal>,
T4: TryIntoVal<E, RawVal>,
T5: TryIntoVal<E, RawVal>,
T6: TryIntoVal<E, RawVal>,
T7: TryIntoVal<E, RawVal>,
T8: TryIntoVal<E, RawVal>,
T9: TryIntoVal<E, RawVal>,
T10: TryIntoVal<E, RawVal>,
impl<E, 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 RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
T3: TryIntoVal<E, RawVal>,
T4: TryIntoVal<E, RawVal>,
T5: TryIntoVal<E, RawVal>,
T6: TryIntoVal<E, RawVal>,
T7: TryIntoVal<E, RawVal>,
T8: TryIntoVal<E, RawVal>,
T9: TryIntoVal<E, RawVal>,
T10: TryIntoVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
) -> Result<RawVal, <RawVal as TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>>::Error>
§impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)> for RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
T3: TryIntoVal<E, RawVal>,
T4: TryIntoVal<E, RawVal>,
T5: TryIntoVal<E, RawVal>,
T6: TryIntoVal<E, RawVal>,
T7: TryIntoVal<E, RawVal>,
T8: TryIntoVal<E, RawVal>,
T9: TryIntoVal<E, RawVal>,
impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)> for RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
T3: TryIntoVal<E, RawVal>,
T4: TryIntoVal<E, RawVal>,
T5: TryIntoVal<E, RawVal>,
T6: TryIntoVal<E, RawVal>,
T7: TryIntoVal<E, RawVal>,
T8: TryIntoVal<E, RawVal>,
T9: TryIntoVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
) -> Result<RawVal, <RawVal as TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)>>::Error>
§impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7, T8)> for RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
T3: TryIntoVal<E, RawVal>,
T4: TryIntoVal<E, RawVal>,
T5: TryIntoVal<E, RawVal>,
T6: TryIntoVal<E, RawVal>,
T7: TryIntoVal<E, RawVal>,
T8: TryIntoVal<E, RawVal>,
impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7, T8)> for RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
T3: TryIntoVal<E, RawVal>,
T4: TryIntoVal<E, RawVal>,
T5: TryIntoVal<E, RawVal>,
T6: TryIntoVal<E, RawVal>,
T7: TryIntoVal<E, RawVal>,
T8: TryIntoVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &(T0, T1, T2, T3, T4, T5, T6, T7, T8)
) -> Result<RawVal, <RawVal as TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7, T8)>>::Error>
§impl<E, T0, T1, T2, T3, T4, T5, T6, T7> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7)> for RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
T3: TryIntoVal<E, RawVal>,
T4: TryIntoVal<E, RawVal>,
T5: TryIntoVal<E, RawVal>,
T6: TryIntoVal<E, RawVal>,
T7: TryIntoVal<E, RawVal>,
impl<E, T0, T1, T2, T3, T4, T5, T6, T7> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7)> for RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
T3: TryIntoVal<E, RawVal>,
T4: TryIntoVal<E, RawVal>,
T5: TryIntoVal<E, RawVal>,
T6: TryIntoVal<E, RawVal>,
T7: TryIntoVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &(T0, T1, T2, T3, T4, T5, T6, T7)
) -> Result<RawVal, <RawVal as TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7)>>::Error>
§impl<E, T0, T1, T2, T3, T4, T5, T6> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6)> for RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
T3: TryIntoVal<E, RawVal>,
T4: TryIntoVal<E, RawVal>,
T5: TryIntoVal<E, RawVal>,
T6: TryIntoVal<E, RawVal>,
impl<E, T0, T1, T2, T3, T4, T5, T6> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6)> for RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
T3: TryIntoVal<E, RawVal>,
T4: TryIntoVal<E, RawVal>,
T5: TryIntoVal<E, RawVal>,
T6: TryIntoVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &(T0, T1, T2, T3, T4, T5, T6)
) -> Result<RawVal, <RawVal as TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6)>>::Error>
§impl<E, T0, T1, T2, T3, T4, T5> TryFromVal<E, (T0, T1, T2, T3, T4, T5)> for RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
T3: TryIntoVal<E, RawVal>,
T4: TryIntoVal<E, RawVal>,
T5: TryIntoVal<E, RawVal>,
impl<E, T0, T1, T2, T3, T4, T5> TryFromVal<E, (T0, T1, T2, T3, T4, T5)> for RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
T3: TryIntoVal<E, RawVal>,
T4: TryIntoVal<E, RawVal>,
T5: TryIntoVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &(T0, T1, T2, T3, T4, T5)
) -> Result<RawVal, <RawVal as TryFromVal<E, (T0, T1, T2, T3, T4, T5)>>::Error>
§impl<E, T0, T1, T2, T3, T4> TryFromVal<E, (T0, T1, T2, T3, T4)> for RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
T3: TryIntoVal<E, RawVal>,
T4: TryIntoVal<E, RawVal>,
impl<E, T0, T1, T2, T3, T4> TryFromVal<E, (T0, T1, T2, T3, T4)> for RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
T3: TryIntoVal<E, RawVal>,
T4: TryIntoVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &(T0, T1, T2, T3, T4)
) -> Result<RawVal, <RawVal as TryFromVal<E, (T0, T1, T2, T3, T4)>>::Error>
§impl<E, T0, T1, T2, T3> TryFromVal<E, (T0, T1, T2, T3)> for RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
T3: TryIntoVal<E, RawVal>,
impl<E, T0, T1, T2, T3> TryFromVal<E, (T0, T1, T2, T3)> for RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
T3: TryIntoVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &(T0, T1, T2, T3)
) -> Result<RawVal, <RawVal as TryFromVal<E, (T0, T1, T2, T3)>>::Error>
§impl<E, T0, T1, T2> TryFromVal<E, (T0, T1, T2)> for RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
impl<E, T0, T1, T2> TryFromVal<E, (T0, T1, T2)> for RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
T2: TryIntoVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &(T0, T1, T2)
) -> Result<RawVal, <RawVal as TryFromVal<E, (T0, T1, T2)>>::Error>
§impl<E, T0, T1> TryFromVal<E, (T0, T1)> for RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
impl<E, T0, T1> TryFromVal<E, (T0, T1)> for RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
T1: TryIntoVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &(T0, T1)
) -> Result<RawVal, <RawVal as TryFromVal<E, (T0, T1)>>::Error>
§impl<E, T0> TryFromVal<E, (T0,)> for RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
impl<E, T0> TryFromVal<E, (T0,)> for RawValwhere
E: Env,
T0: TryIntoVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &(T0,)
) -> Result<RawVal, <RawVal as TryFromVal<E, (T0,)>>::Error>
§impl<E> TryFromVal<E, BitSet> for RawValwhere
E: Env,
impl<E> TryFromVal<E, BitSet> for RawValwhere
E: Env,
type Error = ConversionError
fn try_from_val(
_env: &E,
val: &BitSet
) -> Result<RawVal, <RawVal as TryFromVal<E, BitSet>>::Error>
§impl<E> TryFromVal<E, Object> for RawValwhere
E: Env,
impl<E> TryFromVal<E, Object> for RawValwhere
E: Env,
type Error = ConversionError
fn try_from_val(
_env: &E,
val: &Object
) -> Result<RawVal, <RawVal as TryFromVal<E, Object>>::Error>
§impl<E, T> TryFromVal<E, Option<T>> for RawValwhere
E: Env,
T: TryIntoVal<E, RawVal>,
impl<E, T> TryFromVal<E, Option<T>> for RawValwhere
E: Env,
T: TryIntoVal<E, RawVal>,
type Error = <T as TryIntoVal<E, RawVal>>::Error
fn try_from_val(
env: &E,
v: &Option<T>
) -> Result<RawVal, <RawVal as TryFromVal<E, Option<T>>>::Error>
§impl<E> TryFromVal<E, RawVal> for ()where
E: Env,
impl<E> TryFromVal<E, RawVal> for ()where
E: Env,
type Error = ConversionError
fn try_from_val(
_env: &E,
val: &RawVal
) -> Result<(), <() as TryFromVal<E, RawVal>>::Error>
§impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> TryFromVal<E, RawVal> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
T3: TryFromVal<E, RawVal>,
T4: TryFromVal<E, RawVal>,
T5: TryFromVal<E, RawVal>,
T6: TryFromVal<E, RawVal>,
T7: TryFromVal<E, RawVal>,
T8: TryFromVal<E, RawVal>,
T9: TryFromVal<E, RawVal>,
T10: TryFromVal<E, RawVal>,
T11: TryFromVal<E, RawVal>,
T12: TryFromVal<E, RawVal>,
impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> TryFromVal<E, RawVal> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
T3: TryFromVal<E, RawVal>,
T4: TryFromVal<E, RawVal>,
T5: TryFromVal<E, RawVal>,
T6: TryFromVal<E, RawVal>,
T7: TryFromVal<E, RawVal>,
T8: TryFromVal<E, RawVal>,
T9: TryFromVal<E, RawVal>,
T10: TryFromVal<E, RawVal>,
T11: TryFromVal<E, RawVal>,
T12: TryFromVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
val: &RawVal
) -> Result<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12), <(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) as TryFromVal<E, RawVal>>::Error>
§impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> TryFromVal<E, RawVal> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
T3: TryFromVal<E, RawVal>,
T4: TryFromVal<E, RawVal>,
T5: TryFromVal<E, RawVal>,
T6: TryFromVal<E, RawVal>,
T7: TryFromVal<E, RawVal>,
T8: TryFromVal<E, RawVal>,
T9: TryFromVal<E, RawVal>,
T10: TryFromVal<E, RawVal>,
T11: TryFromVal<E, RawVal>,
impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> TryFromVal<E, RawVal> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
T3: TryFromVal<E, RawVal>,
T4: TryFromVal<E, RawVal>,
T5: TryFromVal<E, RawVal>,
T6: TryFromVal<E, RawVal>,
T7: TryFromVal<E, RawVal>,
T8: TryFromVal<E, RawVal>,
T9: TryFromVal<E, RawVal>,
T10: TryFromVal<E, RawVal>,
T11: TryFromVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
val: &RawVal
) -> Result<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11), <(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) as TryFromVal<E, RawVal>>::Error>
§impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> TryFromVal<E, RawVal> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
T3: TryFromVal<E, RawVal>,
T4: TryFromVal<E, RawVal>,
T5: TryFromVal<E, RawVal>,
T6: TryFromVal<E, RawVal>,
T7: TryFromVal<E, RawVal>,
T8: TryFromVal<E, RawVal>,
T9: TryFromVal<E, RawVal>,
T10: TryFromVal<E, RawVal>,
impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> TryFromVal<E, RawVal> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
T3: TryFromVal<E, RawVal>,
T4: TryFromVal<E, RawVal>,
T5: TryFromVal<E, RawVal>,
T6: TryFromVal<E, RawVal>,
T7: TryFromVal<E, RawVal>,
T8: TryFromVal<E, RawVal>,
T9: TryFromVal<E, RawVal>,
T10: TryFromVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
val: &RawVal
) -> Result<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10), <(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) as TryFromVal<E, RawVal>>::Error>
§impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> TryFromVal<E, RawVal> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
T3: TryFromVal<E, RawVal>,
T4: TryFromVal<E, RawVal>,
T5: TryFromVal<E, RawVal>,
T6: TryFromVal<E, RawVal>,
T7: TryFromVal<E, RawVal>,
T8: TryFromVal<E, RawVal>,
T9: TryFromVal<E, RawVal>,
impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> TryFromVal<E, RawVal> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
T3: TryFromVal<E, RawVal>,
T4: TryFromVal<E, RawVal>,
T5: TryFromVal<E, RawVal>,
T6: TryFromVal<E, RawVal>,
T7: TryFromVal<E, RawVal>,
T8: TryFromVal<E, RawVal>,
T9: TryFromVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
val: &RawVal
) -> Result<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9), <(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9) as TryFromVal<E, RawVal>>::Error>
§impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8> TryFromVal<E, RawVal> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
T3: TryFromVal<E, RawVal>,
T4: TryFromVal<E, RawVal>,
T5: TryFromVal<E, RawVal>,
T6: TryFromVal<E, RawVal>,
T7: TryFromVal<E, RawVal>,
T8: TryFromVal<E, RawVal>,
impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8> TryFromVal<E, RawVal> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
T3: TryFromVal<E, RawVal>,
T4: TryFromVal<E, RawVal>,
T5: TryFromVal<E, RawVal>,
T6: TryFromVal<E, RawVal>,
T7: TryFromVal<E, RawVal>,
T8: TryFromVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
val: &RawVal
) -> Result<(T0, T1, T2, T3, T4, T5, T6, T7, T8), <(T0, T1, T2, T3, T4, T5, T6, T7, T8) as TryFromVal<E, RawVal>>::Error>
§impl<E, T0, T1, T2, T3, T4, T5, T6, T7> TryFromVal<E, RawVal> for (T0, T1, T2, T3, T4, T5, T6, T7)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
T3: TryFromVal<E, RawVal>,
T4: TryFromVal<E, RawVal>,
T5: TryFromVal<E, RawVal>,
T6: TryFromVal<E, RawVal>,
T7: TryFromVal<E, RawVal>,
impl<E, T0, T1, T2, T3, T4, T5, T6, T7> TryFromVal<E, RawVal> for (T0, T1, T2, T3, T4, T5, T6, T7)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
T3: TryFromVal<E, RawVal>,
T4: TryFromVal<E, RawVal>,
T5: TryFromVal<E, RawVal>,
T6: TryFromVal<E, RawVal>,
T7: TryFromVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
val: &RawVal
) -> Result<(T0, T1, T2, T3, T4, T5, T6, T7), <(T0, T1, T2, T3, T4, T5, T6, T7) as TryFromVal<E, RawVal>>::Error>
§impl<E, T0, T1, T2, T3, T4, T5, T6> TryFromVal<E, RawVal> for (T0, T1, T2, T3, T4, T5, T6)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
T3: TryFromVal<E, RawVal>,
T4: TryFromVal<E, RawVal>,
T5: TryFromVal<E, RawVal>,
T6: TryFromVal<E, RawVal>,
impl<E, T0, T1, T2, T3, T4, T5, T6> TryFromVal<E, RawVal> for (T0, T1, T2, T3, T4, T5, T6)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
T3: TryFromVal<E, RawVal>,
T4: TryFromVal<E, RawVal>,
T5: TryFromVal<E, RawVal>,
T6: TryFromVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
val: &RawVal
) -> Result<(T0, T1, T2, T3, T4, T5, T6), <(T0, T1, T2, T3, T4, T5, T6) as TryFromVal<E, RawVal>>::Error>
§impl<E, T0, T1, T2, T3, T4, T5> TryFromVal<E, RawVal> for (T0, T1, T2, T3, T4, T5)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
T3: TryFromVal<E, RawVal>,
T4: TryFromVal<E, RawVal>,
T5: TryFromVal<E, RawVal>,
impl<E, T0, T1, T2, T3, T4, T5> TryFromVal<E, RawVal> for (T0, T1, T2, T3, T4, T5)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
T3: TryFromVal<E, RawVal>,
T4: TryFromVal<E, RawVal>,
T5: TryFromVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
val: &RawVal
) -> Result<(T0, T1, T2, T3, T4, T5), <(T0, T1, T2, T3, T4, T5) as TryFromVal<E, RawVal>>::Error>
§impl<E, T0, T1, T2, T3, T4> TryFromVal<E, RawVal> for (T0, T1, T2, T3, T4)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
T3: TryFromVal<E, RawVal>,
T4: TryFromVal<E, RawVal>,
impl<E, T0, T1, T2, T3, T4> TryFromVal<E, RawVal> for (T0, T1, T2, T3, T4)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
T3: TryFromVal<E, RawVal>,
T4: TryFromVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
val: &RawVal
) -> Result<(T0, T1, T2, T3, T4), <(T0, T1, T2, T3, T4) as TryFromVal<E, RawVal>>::Error>
§impl<E, T0, T1, T2, T3> TryFromVal<E, RawVal> for (T0, T1, T2, T3)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
T3: TryFromVal<E, RawVal>,
impl<E, T0, T1, T2, T3> TryFromVal<E, RawVal> for (T0, T1, T2, T3)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
T3: TryFromVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
val: &RawVal
) -> Result<(T0, T1, T2, T3), <(T0, T1, T2, T3) as TryFromVal<E, RawVal>>::Error>
§impl<E, T0, T1, T2> TryFromVal<E, RawVal> for (T0, T1, T2)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
impl<E, T0, T1, T2> TryFromVal<E, RawVal> for (T0, T1, T2)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
T2: TryFromVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
val: &RawVal
) -> Result<(T0, T1, T2), <(T0, T1, T2) as TryFromVal<E, RawVal>>::Error>
§impl<E, T0, T1> TryFromVal<E, RawVal> for (T0, T1)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
impl<E, T0, T1> TryFromVal<E, RawVal> for (T0, T1)where
E: Env,
T0: TryFromVal<E, RawVal>,
T1: TryFromVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
val: &RawVal
) -> Result<(T0, T1), <(T0, T1) as TryFromVal<E, RawVal>>::Error>
§impl<E, T0> TryFromVal<E, RawVal> for (T0,)where
E: Env,
T0: TryFromVal<E, RawVal>,
impl<E, T0> TryFromVal<E, RawVal> for (T0,)where
E: Env,
T0: TryFromVal<E, RawVal>,
type Error = ConversionError
fn try_from_val(
env: &E,
val: &RawVal
) -> Result<(T0,), <(T0,) as TryFromVal<E, RawVal>>::Error>
§impl<E> TryFromVal<E, RawVal> for BitSetwhere
E: Env,
impl<E> TryFromVal<E, RawVal> for BitSetwhere
E: Env,
type Error = ConversionError
fn try_from_val(
_env: &E,
val: &RawVal
) -> Result<BitSet, <BitSet as TryFromVal<E, RawVal>>::Error>
§impl<E> TryFromVal<E, RawVal> for Objectwhere
E: Env,
impl<E> TryFromVal<E, RawVal> for Objectwhere
E: Env,
type Error = ConversionError
fn try_from_val(
_env: &E,
val: &RawVal
) -> Result<Object, <Object as TryFromVal<E, RawVal>>::Error>
§impl<E, T> TryFromVal<E, RawVal> for Option<T>where
E: Env,
T: TryFromVal<E, RawVal>,
impl<E, T> TryFromVal<E, RawVal> for Option<T>where
E: Env,
T: TryFromVal<E, RawVal>,
type Error = <T as TryFromVal<E, RawVal>>::Error
fn try_from_val(
env: &E,
val: &RawVal
) -> Result<Option<T>, <Option<T> as TryFromVal<E, RawVal>>::Error>
§impl<E> TryFromVal<E, RawVal> for RawValwhere
E: Env,
impl<E> TryFromVal<E, RawVal> for RawValwhere
E: Env,
type Error = ConversionError
fn try_from_val(
_env: &E,
val: &RawVal
) -> Result<RawVal, <RawVal as TryFromVal<E, RawVal>>::Error>
§impl<E, T, R> TryFromVal<E, RawVal> for Result<T, R>where
E: Env,
T: TryFromVal<E, RawVal>,
R: TryFrom<Status>,
impl<E, T, R> TryFromVal<E, RawVal> for Result<T, R>where
E: Env,
T: TryFromVal<E, RawVal>,
R: TryFrom<Status>,
type Error = ConversionError
fn try_from_val(
env: &E,
val: &RawVal
) -> Result<Result<T, R>, <Result<T, R> as TryFromVal<E, RawVal>>::Error>
§impl<E> TryFromVal<E, RawVal> for ScValwhere
E: Env,
ScObject: TryFromVal<E, Object>,
impl<E> TryFromVal<E, RawVal> for ScValwhere
E: Env,
ScObject: TryFromVal<E, Object>,
type Error = ConversionError
fn try_from_val(
env: &E,
val: &RawVal
) -> Result<ScVal, <ScVal as TryFromVal<E, RawVal>>::Error>
§impl<E> TryFromVal<E, RawVal> for Staticwhere
E: Env,
impl<E> TryFromVal<E, RawVal> for Staticwhere
E: Env,
type Error = ConversionError
fn try_from_val(
_env: &E,
val: &RawVal
) -> Result<Static, <Static as TryFromVal<E, RawVal>>::Error>
§impl<E> TryFromVal<E, RawVal> for Statuswhere
E: Env,
impl<E> TryFromVal<E, RawVal> for Statuswhere
E: Env,
type Error = ConversionError
fn try_from_val(
_env: &E,
val: &RawVal
) -> Result<Status, <Status as TryFromVal<E, RawVal>>::Error>
§impl<E> TryFromVal<E, RawVal> for Stringwhere
E: Env,
impl<E> TryFromVal<E, RawVal> for Stringwhere
E: Env,
type Error = ConversionError
fn try_from_val(
env: &E,
val: &RawVal
) -> Result<String, <String as TryFromVal<E, RawVal>>::Error>
§impl<E> TryFromVal<E, RawVal> for Symbolwhere
E: Env,
impl<E> TryFromVal<E, RawVal> for Symbolwhere
E: Env,
type Error = ConversionError
fn try_from_val(
_env: &E,
val: &RawVal
) -> Result<Symbol, <Symbol as TryFromVal<E, RawVal>>::Error>
§impl<E> TryFromVal<E, RawVal> for boolwhere
E: Env,
impl<E> TryFromVal<E, RawVal> for boolwhere
E: Env,
type Error = ConversionError
fn try_from_val(
_env: &E,
val: &RawVal
) -> Result<bool, <bool as TryFromVal<E, RawVal>>::Error>
§impl<E> TryFromVal<E, RawVal> for i128where
E: Env,
impl<E> TryFromVal<E, RawVal> for i128where
E: Env,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &RawVal
) -> Result<i128, <i128 as TryFromVal<E, RawVal>>::Error>
§impl<E> TryFromVal<E, RawVal> for i32where
E: Env,
impl<E> TryFromVal<E, RawVal> for i32where
E: Env,
type Error = ConversionError
fn try_from_val(
_env: &E,
val: &RawVal
) -> Result<i32, <i32 as TryFromVal<E, RawVal>>::Error>
§impl<E> TryFromVal<E, RawVal> for i64where
E: Env,
impl<E> TryFromVal<E, RawVal> for i64where
E: Env,
type Error = ConversionError
fn try_from_val(
env: &E,
val: &RawVal
) -> Result<i64, <i64 as TryFromVal<E, RawVal>>::Error>
§impl<E> TryFromVal<E, RawVal> for u128where
E: Env,
impl<E> TryFromVal<E, RawVal> for u128where
E: Env,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &RawVal
) -> Result<u128, <u128 as TryFromVal<E, RawVal>>::Error>
§impl<E> TryFromVal<E, RawVal> for u32where
E: Env,
impl<E> TryFromVal<E, RawVal> for u32where
E: Env,
type Error = ConversionError
fn try_from_val(
_env: &E,
val: &RawVal
) -> Result<u32, <u32 as TryFromVal<E, RawVal>>::Error>
§impl<E> TryFromVal<E, RawVal> for u64where
E: Env,
impl<E> TryFromVal<E, RawVal> for u64where
E: Env,
type Error = ConversionError
fn try_from_val(
env: &E,
val: &RawVal
) -> Result<u64, <u64 as TryFromVal<E, RawVal>>::Error>
§impl<E, T, R> TryFromVal<E, Result<T, R>> for RawValwhere
E: Env,
RawVal: TryFromVal<E, T>,
Status: for<'a> TryFrom<&'a R>,
impl<E, T, R> TryFromVal<E, Result<T, R>> for RawValwhere
E: Env,
RawVal: TryFromVal<E, T>,
Status: for<'a> TryFrom<&'a R>,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &Result<T, R>
) -> Result<RawVal, <RawVal as TryFromVal<E, Result<T, R>>>::Error>
§impl<E> TryFromVal<E, ScVal> for RawValwhere
E: Env,
Object: TryFromVal<E, ScObject>,
impl<E> TryFromVal<E, ScVal> for RawValwhere
E: Env,
Object: TryFromVal<E, ScObject>,
type Error = ConversionError
fn try_from_val(
env: &E,
val: &ScVal
) -> Result<RawVal, <RawVal as TryFromVal<E, ScVal>>::Error>
§impl<E> TryFromVal<E, Static> for RawValwhere
E: Env,
impl<E> TryFromVal<E, Static> for RawValwhere
E: Env,
type Error = ConversionError
fn try_from_val(
_env: &E,
val: &Static
) -> Result<RawVal, <RawVal as TryFromVal<E, Static>>::Error>
§impl<E> TryFromVal<E, Status> for RawValwhere
E: Env,
impl<E> TryFromVal<E, Status> for RawValwhere
E: Env,
type Error = ConversionError
fn try_from_val(
_env: &E,
val: &Status
) -> Result<RawVal, <RawVal as TryFromVal<E, Status>>::Error>
§impl<'a, E> TryFromVal<E, String> for RawValwhere
E: Env,
impl<'a, E> TryFromVal<E, String> for RawValwhere
E: Env,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &String
) -> Result<RawVal, <RawVal as TryFromVal<E, String>>::Error>
§impl<E> TryFromVal<E, Symbol> for RawValwhere
E: Env,
impl<E> TryFromVal<E, Symbol> for RawValwhere
E: Env,
type Error = ConversionError
fn try_from_val(
_env: &E,
val: &Symbol
) -> Result<RawVal, <RawVal as TryFromVal<E, Symbol>>::Error>
§impl<E> TryFromVal<E, bool> for RawValwhere
E: Env,
impl<E> TryFromVal<E, bool> for RawValwhere
E: Env,
type Error = ConversionError
fn try_from_val(
_env: &E,
val: &bool
) -> Result<RawVal, <RawVal as TryFromVal<E, bool>>::Error>
§impl<E> TryFromVal<E, i128> for RawValwhere
E: Env,
impl<E> TryFromVal<E, i128> for RawValwhere
E: Env,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &i128
) -> Result<RawVal, <RawVal as TryFromVal<E, i128>>::Error>
§impl<E> TryFromVal<E, i32> for RawValwhere
E: Env,
impl<E> TryFromVal<E, i32> for RawValwhere
E: Env,
type Error = ConversionError
fn try_from_val(
_env: &E,
val: &i32
) -> Result<RawVal, <RawVal as TryFromVal<E, i32>>::Error>
§impl<E> TryFromVal<E, i64> for RawValwhere
E: Env,
impl<E> TryFromVal<E, i64> for RawValwhere
E: Env,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &i64
) -> Result<RawVal, <RawVal as TryFromVal<E, i64>>::Error>
§impl<E> TryFromVal<E, u128> for RawValwhere
E: Env,
impl<E> TryFromVal<E, u128> for RawValwhere
E: Env,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &u128
) -> Result<RawVal, <RawVal as TryFromVal<E, u128>>::Error>
§impl<E> TryFromVal<E, u32> for RawValwhere
E: Env,
impl<E> TryFromVal<E, u32> for RawValwhere
E: Env,
type Error = ConversionError
fn try_from_val(
_env: &E,
val: &u32
) -> Result<RawVal, <RawVal as TryFromVal<E, u32>>::Error>
§impl<E> TryFromVal<E, u64> for RawValwhere
E: Env,
impl<E> TryFromVal<E, u64> for RawValwhere
E: Env,
type Error = ConversionError
fn try_from_val(
env: &E,
v: &u64
) -> Result<RawVal, <RawVal as TryFromVal<E, u64>>::Error>
source§impl TryFromVal<Env, &Address> for RawVal
impl TryFromVal<Env, &Address> for RawVal
type Error = ConversionError
fn try_from_val(_env: &Env, v: &&Address) -> Result<Self, Self::Error>
source§impl TryFromVal<Env, Address> for RawVal
impl TryFromVal<Env, Address> for RawVal
type Error = ConversionError
fn try_from_val(_env: &Env, v: &Address) -> Result<Self, Self::Error>
source§impl TryFromVal<Env, Bytes> for RawVal
impl TryFromVal<Env, Bytes> for RawVal
type Error = ConversionError
fn try_from_val(_env: &Env, v: &Bytes) -> Result<Self, Self::Error>
source§impl<const N: usize> TryFromVal<Env, BytesN<N>> for RawVal
impl<const N: usize> TryFromVal<Env, BytesN<N>> for RawVal
type Error = ConversionError
fn try_from_val(_env: &Env, v: &BytesN<N>) -> Result<Self, Self::Error>
source§impl<K, V> TryFromVal<Env, Map<K, V>> for RawValwhere
K: IntoVal<Env, RawVal> + TryFromVal<Env, RawVal>,
V: IntoVal<Env, RawVal> + TryFromVal<Env, RawVal>,
impl<K, V> TryFromVal<Env, Map<K, V>> for RawValwhere
K: IntoVal<Env, RawVal> + TryFromVal<Env, RawVal>,
V: IntoVal<Env, RawVal> + TryFromVal<Env, RawVal>,
type Error = ConversionError
fn try_from_val(_env: &Env, v: &Map<K, V>) -> Result<Self, Self::Error>
source§impl<const N: usize> TryFromVal<Env, RawVal> for BytesN<N>
impl<const N: usize> TryFromVal<Env, RawVal> for BytesN<N>
type Error = ConversionError
fn try_from_val(env: &Env, val: &RawVal) -> Result<Self, Self::Error>
source§impl<K, V> TryFromVal<Env, RawVal> for Map<K, V>where
K: IntoVal<Env, RawVal> + TryFromVal<Env, RawVal>,
V: IntoVal<Env, RawVal> + TryFromVal<Env, RawVal>,
impl<K, V> TryFromVal<Env, RawVal> for Map<K, V>where
K: IntoVal<Env, RawVal> + TryFromVal<Env, RawVal>,
V: IntoVal<Env, RawVal> + TryFromVal<Env, RawVal>,
source§impl<T> TryFromVal<Env, RawVal> for Vec<T>where
T: IntoVal<Env, RawVal> + TryFromVal<Env, RawVal>,
impl<T> TryFromVal<Env, RawVal> for Vec<T>where
T: IntoVal<Env, RawVal> + TryFromVal<Env, RawVal>,
source§impl<T> TryFromVal<Env, Vec<T>> for RawVal
impl<T> TryFromVal<Env, Vec<T>> for RawVal
type Error = ConversionError
fn try_from_val(_env: &Env, v: &Vec<T>) -> Result<Self, Self::Error>
source§impl TryFromVal<Host, AccountEd25519Signature> for RawVal
impl TryFromVal<Host, AccountEd25519Signature> for RawVal
source§impl TryFromVal<Host, Address> for RawVal
impl TryFromVal<Host, Address> for RawVal
source§impl TryFromVal<Host, AllowanceDataKey> for RawVal
impl TryFromVal<Host, AllowanceDataKey> for RawVal
source§impl TryFromVal<Host, AlphaNum12Metadata> for RawVal
impl TryFromVal<Host, AlphaNum12Metadata> for RawVal
source§impl TryFromVal<Host, AlphaNum4Metadata> for RawVal
impl TryFromVal<Host, AlphaNum4Metadata> for RawVal
source§impl TryFromVal<Host, AuthorizationContext> for RawVal
impl TryFromVal<Host, AuthorizationContext> for RawVal
source§impl TryFromVal<Host, BalanceValue> for RawVal
impl TryFromVal<Host, BalanceValue> for RawVal
source§impl TryFromVal<Host, Bytes> for RawVal
impl TryFromVal<Host, Bytes> for RawVal
source§impl TryFromVal<Host, DataKey> for RawVal
impl TryFromVal<Host, DataKey> for RawVal
source§impl TryFromVal<Host, Map> for RawVal
impl TryFromVal<Host, Map> for RawVal
source§impl TryFromVal<Host, Metadata> for RawVal
impl TryFromVal<Host, Metadata> for RawVal
source§impl TryFromVal<Host, Vec> for RawVal
impl TryFromVal<Host, Vec> for RawVal
impl Copy for RawVal
impl Val for RawVal
Auto Trait Implementations§
impl RefUnwindSafe for RawVal
impl Send for RawVal
impl Sync for RawVal
impl Unpin for RawVal
impl UnwindSafe for RawVal
Blanket Implementations§
§impl<T, U, V, E, C> Compare<(T, U, V)> for Cwhere
C: Compare<T, Error = E, Error = E, Error = E> + Compare<U> + Compare<V>,
impl<T, U, V, E, C> Compare<(T, U, V)> for Cwhere
C: Compare<T, Error = E, Error = E, Error = E> + Compare<U> + Compare<V>,
source§impl<T> Deserialize for Twhere
T: TryFromVal<Env, RawVal>,
impl<T> Deserialize for Twhere
T: TryFromVal<Env, RawVal>,
type Error = <T as TryFromVal<Env, RawVal>>::Error
fn deserialize(env: &Env, b: &Bytes) -> Result<T, <T as Deserialize>::Error>
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.