Struct soroban_sdk::Val

source ·
pub struct Val(/* private fields */);
Expand description

Raw value of the Soroban smart contract platform that types can be converted to and from for storing, or passing between contracts.

Implementations§

source§

impl Val

source

pub const fn can_represent_scval_type(scv_ty: ScValType) -> bool

Some ScVals are not representable as Vals at all, and only exist in the XDR to serve as special storage system key or value payloads managed by the Host.

source

pub fn can_represent_scval(scv: &ScVal) -> bool

Non-recursively checks whether ScVal can be represented as Val. Since conversions from ScVal are recursive themselves, this should be called at every recursion level during conversion.

source

pub fn can_represent_scval_recursive(scv: &ScVal) -> bool

Recursively checks whether ScVal can be represented as Val. This should only be used once per top-level ScVal.

source

pub fn is_good(self) -> bool

We define a “good” Val as one that has one of the allowed tag values, all the defined body-bits for its case set to valid values, and all the undefined body-bits set to zero.

source

pub const fn get_payload(self) -> u64

source

pub const fn from_payload(x: u64) -> Val

source

pub const fn shallow_eq(&self, other: &Val) -> bool

source

pub const fn get_tag(self) -> Tag

source

pub const fn is_object(self) -> bool

source

pub const fn from_void() -> Void

source

pub const fn from_bool(b: bool) -> Bool

source

pub const fn is_void(self) -> bool

source

pub const fn is_true(self) -> bool

source

pub const fn is_false(self) -> bool

source§

impl Val

source

pub const I32_ZERO: I32Val = _

source

pub const I32_MIN: I32Val = _

source

pub const I32_MAX: I32Val = _

source

pub const U32_ZERO: U32Val = _

source

pub const U32_ONE: U32Val = _

source

pub const U32_MIN: U32Val = _

source

pub const U32_MAX: U32Val = _

source

pub const VOID: Void = _

source

pub const TRUE: Bool = _

source

pub const FALSE: Bool = _

source§

impl Val

source

pub const fn from_u32(u: u32) -> U32Val

source

pub const fn from_i32(i: i32) -> I32Val

Trait Implementations§

source§

impl AsMut<Val> for AddressObject

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for Bool

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for BytesObject

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for DurationObject

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for DurationSmall

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for DurationVal

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for Error

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for I128Object

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for I128Small

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for I128Val

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for I256Object

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for I256Small

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for I256Val

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for I32Val

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for I64Object

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for I64Small

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for I64Val

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for MapObject

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for Object

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for StringObject

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for Symbol

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for SymbolObject

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for SymbolSmall

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for TimepointObject

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for TimepointSmall

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for TimepointVal

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for U128Object

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for U128Small

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for U128Val

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for U256Object

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for U256Small

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for U256Val

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for U32Val

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for U64Object

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for U64Small

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for U64Val

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for Val

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for VecObject

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<Val> for Void

source§

fn as_mut(&mut self) -> &mut Val

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsRef<Val> for AddressObject

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for Bool

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for BytesObject

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for DurationObject

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for DurationSmall

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for DurationVal

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for Error

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for I128Object

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for I128Small

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for I128Val

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for I256Object

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for I256Small

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for I256Val

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for I32Val

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for I64Object

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for I64Small

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for I64Val

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for MapObject

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for Object

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for StringObject

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for Symbol

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for SymbolObject

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for SymbolSmall

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for TimepointObject

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for TimepointSmall

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for TimepointVal

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for U128Object

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for U128Small

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for U128Val

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for U256Object

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for U256Small

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for U256Val

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for U32Val

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for U64Object

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for U64Small

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for U64Val

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for Val

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for VecObject

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Val> for Void

source§

fn as_ref(&self) -> &Val

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl CheckedEnvArg for Val

source§

fn check_env_arg<E>(self, e: &E) -> Result<Val, <E as EnvBase>::Error>
where E: Env,

source§

impl Clone for Val

source§

fn clone(&self) -> Val

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Val

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Val

source§

fn default() -> Val

Returns the “default value” for a type. Read more
source§

impl From<&()> for Val

source§

fn from(_: &()) -> Val

Converts to this type from the input type.
source§

impl From<&AddressObject> for Val

source§

fn from(b: &AddressObject) -> Val

Converts to this type from the input type.
source§

impl From<&Bool> for Val

source§

fn from(b: &Bool) -> Val

Converts to this type from the input type.
source§

impl From<&BytesObject> for Val

source§

fn from(b: &BytesObject) -> Val

Converts to this type from the input type.
source§

impl From<&DurationObject> for Val

source§

fn from(b: &DurationObject) -> Val

Converts to this type from the input type.
source§

impl From<&DurationSmall> for Val

source§

fn from(b: &DurationSmall) -> Val

Converts to this type from the input type.
source§

impl From<&DurationVal> for Val

source§

fn from(b: &DurationVal) -> Val

Converts to this type from the input type.
source§

impl From<&Error> for Val

source§

fn from(b: &Error) -> Val

Converts to this type from the input type.
source§

impl From<&I128Object> for Val

source§

fn from(b: &I128Object) -> Val

Converts to this type from the input type.
source§

impl From<&I128Small> for Val

source§

fn from(b: &I128Small) -> Val

Converts to this type from the input type.
source§

impl From<&I128Val> for Val

source§

fn from(b: &I128Val) -> Val

Converts to this type from the input type.
source§

impl From<&I256Object> for Val

source§

fn from(b: &I256Object) -> Val

Converts to this type from the input type.
source§

impl From<&I256Small> for Val

source§

fn from(b: &I256Small) -> Val

Converts to this type from the input type.
source§

impl From<&I256Val> for Val

source§

fn from(b: &I256Val) -> Val

Converts to this type from the input type.
source§

impl From<&I32Val> for Val

source§

fn from(b: &I32Val) -> Val

Converts to this type from the input type.
source§

impl From<&I64Object> for Val

source§

fn from(b: &I64Object) -> Val

Converts to this type from the input type.
source§

impl From<&I64Small> for Val

source§

fn from(b: &I64Small) -> Val

Converts to this type from the input type.
source§

impl From<&I64Val> for Val

source§

fn from(b: &I64Val) -> Val

Converts to this type from the input type.
source§

impl From<&MapObject> for Val

source§

fn from(b: &MapObject) -> Val

Converts to this type from the input type.
source§

impl From<&Object> for Val

source§

fn from(b: &Object) -> Val

Converts to this type from the input type.
source§

impl From<&ScError> for Val

source§

fn from(er: &ScError) -> Val

Converts to this type from the input type.
source§

impl From<&StringObject> for Val

source§

fn from(b: &StringObject) -> Val

Converts to this type from the input type.
source§

impl From<&Symbol> for Val

source§

fn from(b: &Symbol) -> Val

Converts to this type from the input type.
source§

impl From<&SymbolObject> for Val

source§

fn from(b: &SymbolObject) -> Val

Converts to this type from the input type.
source§

impl From<&SymbolSmall> for Val

source§

fn from(b: &SymbolSmall) -> Val

Converts to this type from the input type.
source§

impl From<&TimepointObject> for Val

source§

fn from(b: &TimepointObject) -> Val

Converts to this type from the input type.
source§

impl From<&TimepointSmall> for Val

source§

fn from(b: &TimepointSmall) -> Val

Converts to this type from the input type.
source§

impl From<&TimepointVal> for Val

source§

fn from(b: &TimepointVal) -> Val

Converts to this type from the input type.
source§

impl From<&U128Object> for Val

source§

fn from(b: &U128Object) -> Val

Converts to this type from the input type.
source§

impl From<&U128Small> for Val

source§

fn from(b: &U128Small) -> Val

Converts to this type from the input type.
source§

impl From<&U128Val> for Val

source§

fn from(b: &U128Val) -> Val

Converts to this type from the input type.
source§

impl From<&U256Object> for Val

source§

fn from(b: &U256Object) -> Val

Converts to this type from the input type.
source§

impl From<&U256Small> for Val

source§

fn from(b: &U256Small) -> Val

Converts to this type from the input type.
source§

impl From<&U256Val> for Val

source§

fn from(b: &U256Val) -> Val

Converts to this type from the input type.
source§

impl From<&U32Val> for Val

source§

fn from(b: &U32Val) -> Val

Converts to this type from the input type.
source§

impl From<&U64Object> for Val

source§

fn from(b: &U64Object) -> Val

Converts to this type from the input type.
source§

impl From<&U64Small> for Val

source§

fn from(b: &U64Small) -> Val

Converts to this type from the input type.
source§

impl From<&U64Val> for Val

source§

fn from(b: &U64Val) -> Val

Converts to this type from the input type.
source§

impl From<&VecObject> for Val

source§

fn from(b: &VecObject) -> Val

Converts to this type from the input type.
source§

impl From<&Void> for Val

source§

fn from(b: &Void) -> Val

Converts to this type from the input type.
source§

impl From<&i32> for Val

source§

fn from(i: &i32) -> Val

Converts to this type from the input type.
source§

impl From<&u32> for Val

source§

fn from(u: &u32) -> Val

Converts to this type from the input type.
source§

impl From<()> for Val

source§

fn from(_: ()) -> Val

Converts to this type from the input type.
source§

impl From<AddressObject> for Val

source§

fn from(b: AddressObject) -> Val

Converts to this type from the input type.
source§

impl From<Bool> for Val

source§

fn from(b: Bool) -> Val

Converts to this type from the input type.
source§

impl From<Bytes> for Val

source§

fn from(v: Bytes) -> Self

Converts to this type from the input type.
source§

impl<const N: usize> From<BytesN<N>> for Val

source§

fn from(val: BytesN<N>) -> Val

Converts to this type from the input type.
source§

impl<const N: usize> From<BytesN<N>> for Val

source§

fn from(v: BytesN<N>) -> Self

Converts to this type from the input type.
source§

impl From<BytesObject> for Val

source§

fn from(b: BytesObject) -> Val

Converts to this type from the input type.
source§

impl From<DurationObject> for Val

source§

fn from(b: DurationObject) -> Val

Converts to this type from the input type.
source§

impl From<DurationSmall> for Val

source§

fn from(b: DurationSmall) -> Val

Converts to this type from the input type.
source§

impl From<DurationVal> for Val

source§

fn from(b: DurationVal) -> Val

Converts to this type from the input type.
source§

impl From<Error> for Val

source§

fn from(b: Error) -> Val

Converts to this type from the input type.
source§

impl From<I128Object> for Val

source§

fn from(b: I128Object) -> Val

Converts to this type from the input type.
source§

impl From<I128Small> for Val

source§

fn from(b: I128Small) -> Val

Converts to this type from the input type.
source§

impl From<I128Val> for Val

source§

fn from(b: I128Val) -> Val

Converts to this type from the input type.
source§

impl From<I256Object> for Val

source§

fn from(b: I256Object) -> Val

Converts to this type from the input type.
source§

impl From<I256Small> for Val

source§

fn from(b: I256Small) -> Val

Converts to this type from the input type.
source§

impl From<I256Val> for Val

source§

fn from(b: I256Val) -> Val

Converts to this type from the input type.
source§

impl From<I32Val> for Val

source§

fn from(b: I32Val) -> Val

Converts to this type from the input type.
source§

impl From<I64Object> for Val

source§

fn from(b: I64Object) -> Val

Converts to this type from the input type.
source§

impl From<I64Small> for Val

source§

fn from(b: I64Small) -> Val

Converts to this type from the input type.
source§

impl From<I64Val> for Val

source§

fn from(b: I64Val) -> Val

Converts to this type from the input type.
source§

impl<K, V> From<Map<K, V>> for Val

source§

fn from(m: Map<K, V>) -> Self

Converts to this type from the input type.
source§

impl From<MapObject> for Val

source§

fn from(b: MapObject) -> Val

Converts to this type from the input type.
source§

impl From<Object> for Val

source§

fn from(b: Object) -> Val

Converts to this type from the input type.
source§

impl From<ScError> for Val

source§

fn from(er: ScError) -> Val

Converts to this type from the input type.
source§

impl From<String> for Val

source§

fn from(v: String) -> Self

Converts to this type from the input type.
source§

impl From<StringObject> for Val

source§

fn from(b: StringObject) -> Val

Converts to this type from the input type.
source§

impl From<Symbol> for Val

source§

fn from(b: Symbol) -> Val

Converts to this type from the input type.
source§

impl From<SymbolObject> for Val

source§

fn from(b: SymbolObject) -> Val

Converts to this type from the input type.
source§

impl From<SymbolSmall> for Val

source§

fn from(b: SymbolSmall) -> Val

Converts to this type from the input type.
source§

impl From<TimepointObject> for Val

source§

fn from(b: TimepointObject) -> Val

Converts to this type from the input type.
source§

impl From<TimepointSmall> for Val

source§

fn from(b: TimepointSmall) -> Val

Converts to this type from the input type.
source§

impl From<TimepointVal> for Val

source§

fn from(b: TimepointVal) -> Val

Converts to this type from the input type.
source§

impl From<U128Object> for Val

source§

fn from(b: U128Object) -> Val

Converts to this type from the input type.
source§

impl From<U128Small> for Val

source§

fn from(b: U128Small) -> Val

Converts to this type from the input type.
source§

impl From<U128Val> for Val

source§

fn from(b: U128Val) -> Val

Converts to this type from the input type.
source§

impl From<U256Object> for Val

source§

fn from(b: U256Object) -> Val

Converts to this type from the input type.
source§

impl From<U256Small> for Val

source§

fn from(b: U256Small) -> Val

Converts to this type from the input type.
source§

impl From<U256Val> for Val

source§

fn from(b: U256Val) -> Val

Converts to this type from the input type.
source§

impl From<U32Val> for Val

source§

fn from(b: U32Val) -> Val

Converts to this type from the input type.
source§

impl From<U64Object> for Val

source§

fn from(b: U64Object) -> Val

Converts to this type from the input type.
source§

impl From<U64Small> for Val

source§

fn from(b: U64Small) -> Val

Converts to this type from the input type.
source§

impl From<U64Val> for Val

source§

fn from(b: U64Val) -> Val

Converts to this type from the input type.
source§

impl<T> From<Vec<T>> for Val
where T: IntoVal<Env, Val> + TryFromVal<Env, Val>,

source§

fn from(v: Vec<T>) -> Self

Converts to this type from the input type.
source§

impl From<Vec> for Val

source§

fn from(val: Vec) -> Val

Converts to this type from the input type.
source§

impl From<VecObject> for Val

source§

fn from(b: VecObject) -> Val

Converts to this type from the input type.
source§

impl From<Void> for Val

source§

fn from(b: Void) -> Val

Converts to this type from the input type.
source§

impl From<bool> for Val

source§

fn from(b: bool) -> Val

Converts to this type from the input type.
source§

impl From<i32> for Val

source§

fn from(i: i32) -> Val

Converts to this type from the input type.
source§

impl From<u32> for Val

source§

fn from(u: u32) -> Val

Converts to this type from the input type.
source§

impl Hash for Val

source§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl SorobanArbitrary for Val

Available on crate feature testutils only.
§

type Prototype = ArbitraryVal

A type that implements Arbitrary and can be converted to this SorobanArbitrary type.
source§

impl TryFrom<&Val> for AddressObject

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( v: &Val ) -> Result<AddressObject, <AddressObject as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for Bool

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<Bool, <Bool as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for BytesObject

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( v: &Val ) -> Result<BytesObject, <BytesObject as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for DurationObject

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( v: &Val ) -> Result<DurationObject, <DurationObject as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for DurationSmall

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( v: &Val ) -> Result<DurationSmall, <DurationSmall as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for DurationVal

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( v: &Val ) -> Result<DurationVal, <DurationVal as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for Error

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<Error, <Error as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for I128Object

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<I128Object, <I128Object as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for I128Small

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<I128Small, <I128Small as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for I128Val

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<I128Val, <I128Val as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for I256Object

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<I256Object, <I256Object as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for I256Small

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<I256Small, <I256Small as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for I256Val

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<I256Val, <I256Val as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for I32Val

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<I32Val, <I32Val as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for I64Object

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<I64Object, <I64Object as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for I64Small

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<I64Small, <I64Small as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for I64Val

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<I64Val, <I64Val as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for MapObject

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<MapObject, <MapObject as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for Object

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<Object, <Object as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for StringObject

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( v: &Val ) -> Result<StringObject, <StringObject as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for Symbol

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<Symbol, <Symbol as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for SymbolObject

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( v: &Val ) -> Result<SymbolObject, <SymbolObject as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for SymbolSmall

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( v: &Val ) -> Result<SymbolSmall, <SymbolSmall as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for TimepointObject

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( v: &Val ) -> Result<TimepointObject, <TimepointObject as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for TimepointSmall

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( v: &Val ) -> Result<TimepointSmall, <TimepointSmall as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for TimepointVal

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( v: &Val ) -> Result<TimepointVal, <TimepointVal as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for U128Object

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<U128Object, <U128Object as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for U128Small

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<U128Small, <U128Small as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for U128Val

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<U128Val, <U128Val as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for U256Object

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<U256Object, <U256Object as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for U256Small

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<U256Small, <U256Small as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for U256Val

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<U256Val, <U256Val as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for U32Val

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<U32Val, <U32Val as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for U64Object

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<U64Object, <U64Object as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for U64Small

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<U64Small, <U64Small as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for U64Val

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<U64Val, <U64Val as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for VecObject

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<VecObject, <VecObject as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for Void

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: &Val) -> Result<Void, <Void as TryFrom<&Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for AddressObject

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( v: Val ) -> Result<AddressObject, <AddressObject as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for Bool

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<Bool, <Bool as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for BytesObject

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<BytesObject, <BytesObject as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for DurationObject

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( v: Val ) -> Result<DurationObject, <DurationObject as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for DurationSmall

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( v: Val ) -> Result<DurationSmall, <DurationSmall as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for DurationVal

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<DurationVal, <DurationVal as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for Error

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<Error, <Error as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for I128Object

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<I128Object, <I128Object as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for I128Small

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<I128Small, <I128Small as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for I128Val

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<I128Val, <I128Val as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for I256Object

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<I256Object, <I256Object as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for I256Small

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<I256Small, <I256Small as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for I256Val

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<I256Val, <I256Val as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for I32Val

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<I32Val, <I32Val as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for I64Object

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<I64Object, <I64Object as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for I64Small

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<I64Small, <I64Small as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for I64Val

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<I64Val, <I64Val as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for MapObject

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<MapObject, <MapObject as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for Object

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<Object, <Object as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for StringObject

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( v: Val ) -> Result<StringObject, <StringObject as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for Symbol

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<Symbol, <Symbol as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for SymbolObject

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( v: Val ) -> Result<SymbolObject, <SymbolObject as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for SymbolSmall

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<SymbolSmall, <SymbolSmall as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for TimepointObject

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( v: Val ) -> Result<TimepointObject, <TimepointObject as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for TimepointSmall

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( v: Val ) -> Result<TimepointSmall, <TimepointSmall as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for TimepointVal

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from( v: Val ) -> Result<TimepointVal, <TimepointVal as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for U128Object

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<U128Object, <U128Object as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for U128Small

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<U128Small, <U128Small as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for U128Val

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<U128Val, <U128Val as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for U256Object

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<U256Object, <U256Object as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for U256Small

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<U256Small, <U256Small as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for U256Val

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<U256Val, <U256Val as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for U32Val

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<U32Val, <U32Val as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for U64Object

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<U64Object, <U64Object as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for U64Small

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<U64Small, <U64Small as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for U64Val

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<U64Val, <U64Val as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for VecObject

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<VecObject, <VecObject as TryFrom<Val>>::Error>

Performs the conversion.
source§

impl TryFrom<Val> for Void

§

type Error = ConversionError

The type returned in the event of a conversion error.
source§

fn try_from(v: Val) -> Result<Void, <Void as TryFrom<Val>>::Error>

Performs the conversion.
source§

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

§

type Error = Error

source§

fn try_from_val( env: &E, v: &&[u8] ) -> Result<Val, <Val as TryFromVal<E, &[u8]>>::Error>

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

fn try_from_val( env: &E, v: &[u8; N] ) -> Result<Val, <Val as TryFromVal<E, [u8; N]>>::Error>

source§

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

§

type Error = ConversionError

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl<E, T0, T1, T2, T3, T4, T5> TryFromVal<E, (T0, T1, T2, T3, T4, T5)> for Val
where E: Env, 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, T0, T1, T2, T3, T4, T5, T6> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6)> for Val
where E: Env, 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, T0, T1, T2, T3, T4, T5, T6, T7> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7)> for Val
where E: Env, 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, T0, T1, T2, T3, T4, T5, T6, T7, T8> TryFromVal<E, (T0, T1, T2, T3, T4, T5, T6, T7, T8)> for Val
where E: Env, 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, 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 E: Env, 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, 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 E: Env, 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, 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 E: Env, 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, 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 E: Env, 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> TryFromVal<E, AddressObject> for Val
where E: Env,

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

§

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

source§

fn try_from_val( env: &E, v: &Option<T> ) -> Result<Val, <Val as TryFromVal<E, Option<T>>>::Error>

source§

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

§

type Error = Error

source§

fn try_from_val( env: &E, v: &Result<T, R> ) -> Result<Val, <Val as TryFromVal<E, Result<T, R>>>::Error>

source§

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

§

type Error = Error

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl<E, T0, T1, T2, T3, T4, T5> TryFromVal<E, Val> for (T0, T1, T2, T3, T4, T5)
where E: Env, 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§

impl<E, T0, T1, T2, T3, T4, T5, T6> TryFromVal<E, Val> for (T0, T1, T2, T3, T4, T5, T6)
where E: Env, 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§

impl<E, T0, T1, T2, T3, T4, T5, T6, T7> TryFromVal<E, Val> for (T0, T1, T2, T3, T4, T5, T6, T7)
where E: Env, 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§

impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8> TryFromVal<E, Val> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
where E: Env, 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§

impl<E, 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 E: Env, 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§

impl<E, 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 E: Env, 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§

impl<E, 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 E: Env, 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§

impl<E, 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 E: Env, 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§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

§

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

source§

fn try_from_val( env: &E, val: &Val ) -> Result<Option<T>, <Option<T> as TryFromVal<E, Val>>::Error>

source§

impl<E, T, R> TryFromVal<E, Val> for Result<T, R>
where E: Env, 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<Result<T, R>, <Result<T, R> as TryFromVal<E, Val>>::Error>

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

§

type Error = Error

source§

fn try_from_val( env: &E, val: &Val ) -> Result<Vec<u8>, <Vec<u8> as TryFromVal<E, Val>>::Error>

source§

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

source§

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

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

fn try_from_val( env: &E, v: &Vec<u8> ) -> Result<Val, <Val as TryFromVal<E, Vec<u8>>>::Error>

source§

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

source§

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

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

source§

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

§

type Error = Error

source§

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

source§

impl TryFromVal<Env, &Address> for Val

§

type Error = ConversionError

source§

fn try_from_val(_env: &Env, v: &&Address) -> Result<Self, Self::Error>

source§

impl TryFromVal<Env, &Duration> for Val

§

type Error = ConversionError

source§

fn try_from_val(_env: &Env, v: &&Duration) -> Result<Self, Self::Error>

source§

impl TryFromVal<Env, &I256> for Val

§

type Error = ConversionError

source§

fn try_from_val(_env: &Env, v: &&I256) -> Result<Self, Self::Error>

source§

impl TryFromVal<Env, &Symbol> for Val

§

type Error = ConversionError

source§

fn try_from_val(_env: &Env, v: &&Symbol) -> Result<Self, Self::Error>

source§

impl TryFromVal<Env, &Timepoint> for Val

§

type Error = ConversionError

source§

fn try_from_val(_env: &Env, v: &&Timepoint) -> Result<Self, Self::Error>

source§

impl TryFromVal<Env, &U256> for Val

§

type Error = ConversionError

source§

fn try_from_val(_env: &Env, v: &&U256) -> Result<Self, Self::Error>

source§

impl TryFromVal<Env, Address> for Val

§

type Error = ConversionError

source§

fn try_from_val(_env: &Env, v: &Address) -> Result<Self, Self::Error>

source§

impl TryFromVal<Env, Bytes> for Val

§

type Error = ConversionError

source§

fn try_from_val(_env: &Env, v: &Bytes) -> Result<Self, Self::Error>

source§

impl<const N: usize> TryFromVal<Env, BytesN<N>> for Val

§

type Error = ConversionError

source§

fn try_from_val(_env: &Env, v: &BytesN<N>) -> Result<Self, Self::Error>

source§

impl TryFromVal<Env, Context> for Val

source§

impl TryFromVal<Env, ContractContext> for Val

source§

impl TryFromVal<Env, ContractExecutable> for Val

source§

impl TryFromVal<Env, CreateContractHostFnContext> for Val

source§

impl TryFromVal<Env, Duration> for Val

§

type Error = ConversionError

source§

fn try_from_val(_env: &Env, v: &Duration) -> Result<Self, Self::Error>

source§

impl TryFromVal<Env, I256> for Val

§

type Error = ConversionError

source§

fn try_from_val(_env: &Env, v: &I256) -> Result<Self, Self::Error>

source§

impl TryFromVal<Env, InvokerContractAuthEntry> for Val

source§

impl<K, V> TryFromVal<Env, Map<K, V>> for Val

§

type Error = Infallible

source§

fn try_from_val(_env: &Env, v: &Map<K, V>) -> Result<Self, Self::Error>

source§

impl TryFromVal<Env, String> for Val

§

type Error = ConversionError

source§

fn try_from_val(_env: &Env, v: &String) -> Result<Self, Self::Error>

source§

impl TryFromVal<Env, SubContractInvocation> for Val

source§

impl TryFromVal<Env, Symbol> for Val

§

type Error = ConversionError

source§

fn try_from_val(_env: &Env, v: &Symbol) -> Result<Self, Self::Error>

source§

impl TryFromVal<Env, Timepoint> for Val

§

type Error = ConversionError

source§

fn try_from_val(_env: &Env, v: &Timepoint) -> Result<Self, Self::Error>

source§

impl TryFromVal<Env, U256> for Val

§

type Error = ConversionError

source§

fn try_from_val(_env: &Env, v: &U256) -> Result<Self, Self::Error>

source§

impl TryFromVal<Env, Val> for Address

§

type Error = ConversionError

source§

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

source§

impl TryFromVal<Env, Val> for Bytes

§

type Error = ConversionError

source§

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

source§

impl<const N: usize> TryFromVal<Env, Val> for BytesN<N>

§

type Error = ConversionError

source§

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

source§

impl TryFromVal<Env, Val> for Context

source§

impl TryFromVal<Env, Val> for ContractContext

source§

impl TryFromVal<Env, Val> for ContractExecutable

source§

impl TryFromVal<Env, Val> for CreateContractHostFnContext

source§

impl TryFromVal<Env, Val> for Duration

§

type Error = ConversionError

source§

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

source§

impl TryFromVal<Env, Val> for I256

§

type Error = ConversionError

source§

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

source§

impl TryFromVal<Env, Val> for InvokerContractAuthEntry

source§

impl<K, V> TryFromVal<Env, Val> for Map<K, V>

§

type Error = ConversionError

source§

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

source§

impl TryFromVal<Env, Val> for String

§

type Error = ConversionError

source§

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

source§

impl TryFromVal<Env, Val> for SubContractInvocation

source§

impl TryFromVal<Env, Val> for Symbol

§

type Error = ConversionError

source§

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

source§

impl TryFromVal<Env, Val> for Timepoint

§

type Error = ConversionError

source§

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

source§

impl TryFromVal<Env, Val> for U256

§

type Error = ConversionError

source§

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

source§

impl<T> TryFromVal<Env, Val> for Vec<T>
where T: IntoVal<Env, Val> + TryFromVal<Env, Val>,

§

type Error = ConversionError

source§

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

source§

impl<T> TryFromVal<Env, Vec<T>> for Val

§

type Error = ConversionError

source§

fn try_from_val(_env: &Env, v: &Vec<T>) -> Result<Self, Self::Error>

source§

impl TryFromVal<Host, AccountEd25519Signature> for Val

§

type Error = HostError

source§

fn try_from_val( env: &Host, val: &AccountEd25519Signature ) -> Result<Val, <Val as TryFromVal<Host, AccountEd25519Signature>>::Error>

source§

impl TryFromVal<Host, Address> for Val

§

type Error = HostError

source§

fn try_from_val( _env: &Host, val: &Address ) -> Result<Val, <Val as TryFromVal<Host, Address>>::Error>

source§

impl TryFromVal<Host, AllowanceDataKey> for Val

§

type Error = HostError

source§

fn try_from_val( env: &Host, val: &AllowanceDataKey ) -> Result<Val, <Val as TryFromVal<Host, AllowanceDataKey>>::Error>

source§

impl TryFromVal<Host, AllowanceValue> for Val

§

type Error = HostError

source§

fn try_from_val( env: &Host, val: &AllowanceValue ) -> Result<Val, <Val as TryFromVal<Host, AllowanceValue>>::Error>

source§

impl TryFromVal<Host, AlphaNum12AssetInfo> for Val

§

type Error = HostError

source§

fn try_from_val( env: &Host, val: &AlphaNum12AssetInfo ) -> Result<Val, <Val as TryFromVal<Host, AlphaNum12AssetInfo>>::Error>

source§

impl TryFromVal<Host, AlphaNum4AssetInfo> for Val

§

type Error = HostError

source§

fn try_from_val( env: &Host, val: &AlphaNum4AssetInfo ) -> Result<Val, <Val as TryFromVal<Host, AlphaNum4AssetInfo>>::Error>

source§

impl TryFromVal<Host, AssetInfo> for Val

§

type Error = HostError

source§

fn try_from_val( env: &Host, val: &AssetInfo ) -> Result<Val, <Val as TryFromVal<Host, AssetInfo>>::Error>

source§

impl TryFromVal<Host, AuthorizationContext> for Val

§

type Error = HostError

source§

fn try_from_val( env: &Host, val: &AuthorizationContext ) -> Result<Val, <Val as TryFromVal<Host, AuthorizationContext>>::Error>

source§

impl TryFromVal<Host, BalanceValue> for Val

§

type Error = HostError

source§

fn try_from_val( env: &Host, val: &BalanceValue ) -> Result<Val, <Val as TryFromVal<Host, BalanceValue>>::Error>

source§

impl<const N: usize> TryFromVal<Host, BytesN<N>> for Val

§

type Error = HostError

source§

fn try_from_val( _env: &Host, val: &BytesN<N> ) -> Result<Val, <Val as TryFromVal<Host, BytesN<N>>>::Error>

source§

impl TryFromVal<Host, ContractAuthorizationContext> for Val

§

type Error = HostError

source§

fn try_from_val( env: &Host, val: &ContractAuthorizationContext ) -> Result<Val, <Val as TryFromVal<Host, ContractAuthorizationContext>>::Error>

source§

impl TryFromVal<Host, ContractExecutable> for Val

§

type Error = HostError

source§

fn try_from_val( env: &Host, val: &ContractExecutable ) -> Result<Val, <Val as TryFromVal<Host, ContractExecutable>>::Error>

source§

impl TryFromVal<Host, CreateContractHostFnContext> for Val

§

type Error = HostError

source§

fn try_from_val( env: &Host, val: &CreateContractHostFnContext ) -> Result<Val, <Val as TryFromVal<Host, CreateContractHostFnContext>>::Error>

source§

impl TryFromVal<Host, DataKey> for Val

§

type Error = HostError

source§

fn try_from_val( env: &Host, val: &DataKey ) -> Result<Val, <Val as TryFromVal<Host, DataKey>>::Error>

source§

impl TryFromVal<Host, InstanceDataKey> for Val

§

type Error = HostError

source§

fn try_from_val( env: &Host, val: &InstanceDataKey ) -> Result<Val, <Val as TryFromVal<Host, InstanceDataKey>>::Error>

source§

impl TryFromVal<Host, InvokerContractAuthEntry> for Val

§

type Error = HostError

source§

fn try_from_val( env: &Host, val: &InvokerContractAuthEntry ) -> Result<Val, <Val as TryFromVal<Host, InvokerContractAuthEntry>>::Error>

source§

impl TryFromVal<Host, StellarAssetContractMetadata> for Val

§

type Error = HostError

source§

fn try_from_val( env: &Host, val: &StellarAssetContractMetadata ) -> Result<Val, <Val as TryFromVal<Host, StellarAssetContractMetadata>>::Error>

source§

impl TryFromVal<Host, String> for Val

§

type Error = HostError

source§

fn try_from_val( _env: &Host, val: &String ) -> Result<Val, <Val as TryFromVal<Host, String>>::Error>

source§

impl TryFromVal<Host, SubContractInvocation> for Val

§

type Error = HostError

source§

fn try_from_val( env: &Host, val: &SubContractInvocation ) -> Result<Val, <Val as TryFromVal<Host, SubContractInvocation>>::Error>

source§

impl TryFromVal<Host, Vec> for Val

§

type Error = HostError

source§

fn try_from_val( _env: &Host, val: &Vec ) -> Result<Val, <Val as TryFromVal<Host, Vec>>::Error>

source§

impl WasmiMarshal for Val

source§

impl Copy for Val

Auto Trait Implementations§

§

impl Freeze for Val

§

impl RefUnwindSafe for Val

§

impl Send for Val

§

impl Sync for Val

§

impl Unpin for Val

§

impl UnwindSafe for Val

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, C> Compare<&T> for C
where C: Compare<T>,

§

type Error = <C as Compare<T>>::Error

source§

fn compare(&self, a: &&T, b: &&T) -> Result<Ordering, <C as Compare<&T>>::Error>

source§

impl<T, U, E, C> Compare<(T, U)> for C
where C: Compare<T, Error = E, Error = E> + Compare<U>,

§

type Error = E

source§

fn compare( &self, a: &(T, U), b: &(T, U) ) -> Result<Ordering, <C as Compare<(T, U)>>::Error>

source§

impl<T, U, V, E, C> Compare<(T, U, V)> for C
where C: Compare<T, Error = E, Error = E, Error = E> + Compare<U> + Compare<V>,

§

type Error = E

source§

fn compare( &self, a: &(T, U, V), b: &(T, U, V) ) -> Result<Ordering, <C as Compare<(T, U, V)>>::Error>

source§

impl<T, U, V, W, E, C> Compare<(T, U, V, W)> for C
where C: Compare<T, Error = E, Error = E, Error = E, Error = E> + Compare<U> + Compare<V> + Compare<W>,

source§

impl<T, U, V, W, X, E, C> Compare<(T, U, V, W, X)> for C
where C: Compare<T, Error = E, Error = E, Error = E, Error = E, Error = E> + Compare<U> + Compare<V> + Compare<W> + Compare<X>,

source§

impl<T, C> Compare<Box<T>> for C
where C: Compare<T>,

§

type Error = <C as Compare<T>>::Error

source§

fn compare( &self, a: &Box<T>, b: &Box<T> ) -> Result<Ordering, <C as Compare<Box<T>>>::Error>

source§

impl<T, C> Compare<Option<T>> for C
where C: Compare<T>,

§

type Error = <C as Compare<T>>::Error

source§

fn compare( &self, a: &Option<T>, b: &Option<T> ) -> Result<Ordering, <C as Compare<Option<T>>>::Error>

source§

impl<T, C> Compare<Rc<T>> for C
where C: Compare<T>,

§

type Error = <C as Compare<T>>::Error

source§

fn compare( &self, a: &Rc<T>, b: &Rc<T> ) -> Result<Ordering, <C as Compare<Rc<T>>>::Error>

source§

impl<E> Compare<Val> for E
where E: Env,

§

type Error = <E as EnvBase>::Error

source§

fn compare( &self, a: &Val, b: &Val ) -> Result<Ordering, <E as Compare<Val>>::Error>

source§

impl<T, C> Compare<Vec<T>> for C
where C: Compare<T>,

§

type Error = <C as Compare<T>>::Error

source§

fn compare( &self, a: &Vec<T>, b: &Vec<T> ) -> Result<Ordering, <C as Compare<Vec<T>>>::Error>

source§

impl<T> Downcast for T
where T: Any,

source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert 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.
source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<E, T, U> FromVal<E, T> for U
where E: Env, U: TryFromVal<E, T>,

source§

fn from_val(e: &E, v: &T) -> U

source§

impl<T> FromXdr for T
where T: TryFromVal<Env, Val>,

§

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

source§

fn from_xdr(env: &Env, b: &Bytes) -> Result<T, <T as FromXdr>::Error>

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<E, T, U> IntoVal<E, T> for U
where E: Env, T: FromVal<E, U>,

source§

fn into_val(&self, e: &E) -> T

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToXdr for T
where T: IntoVal<Env, Val>,

source§

fn to_xdr(self, env: &Env) -> Bytes

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

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

§

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

source§

fn try_into_val(&self, env: &E) -> Result<T, <U as TryIntoVal<E, T>>::Error>

source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V