Struct soroban_env_common::Val

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

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

source

pub const fn shallow_eq(&self, other: &Self) -> 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: Env>(self, e: &E) -> Result<Self, E::Error>

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<E: Env> Compare<Val> for E

§

type Error = <E as EnvBase>::Error

source§

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

source§

impl Debug for Val

source§

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

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

impl Default for Val

source§

fn default() -> Self

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

impl From<&()> for Val

source§

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

Converts to this type from the input type.
source§

impl From<&AddressObject> for Val

source§

fn from(b: &AddressObject) -> Self

Converts to this type from the input type.
source§

impl From<&Bool> for Val

source§

fn from(b: &Bool) -> Self

Converts to this type from the input type.
source§

impl From<&BytesObject> for Val

source§

fn from(b: &BytesObject) -> Self

Converts to this type from the input type.
source§

impl From<&DurationObject> for Val

source§

fn from(b: &DurationObject) -> Self

Converts to this type from the input type.
source§

impl From<&DurationSmall> for Val

source§

fn from(b: &DurationSmall) -> Self

Converts to this type from the input type.
source§

impl From<&DurationVal> for Val

source§

fn from(b: &DurationVal) -> Self

Converts to this type from the input type.
source§

impl From<&Error> for Val

source§

fn from(b: &Error) -> Self

Converts to this type from the input type.
source§

impl From<&I128Object> for Val

source§

fn from(b: &I128Object) -> Self

Converts to this type from the input type.
source§

impl From<&I128Small> for Val

source§

fn from(b: &I128Small) -> Self

Converts to this type from the input type.
source§

impl From<&I128Val> for Val

source§

fn from(b: &I128Val) -> Self

Converts to this type from the input type.
source§

impl From<&I256Object> for Val

source§

fn from(b: &I256Object) -> Self

Converts to this type from the input type.
source§

impl From<&I256Small> for Val

source§

fn from(b: &I256Small) -> Self

Converts to this type from the input type.
source§

impl From<&I256Val> for Val

source§

fn from(b: &I256Val) -> Self

Converts to this type from the input type.
source§

impl From<&I32Val> for Val

source§

fn from(b: &I32Val) -> Self

Converts to this type from the input type.
source§

impl From<&I64Object> for Val

source§

fn from(b: &I64Object) -> Self

Converts to this type from the input type.
source§

impl From<&I64Small> for Val

source§

fn from(b: &I64Small) -> Self

Converts to this type from the input type.
source§

impl From<&I64Val> for Val

source§

fn from(b: &I64Val) -> Self

Converts to this type from the input type.
source§

impl From<&MapObject> for Val

source§

fn from(b: &MapObject) -> Self

Converts to this type from the input type.
source§

impl From<&Object> for Val

source§

fn from(b: &Object) -> Self

Converts to this type from the input type.
source§

impl From<&ScError> for Val

source§

fn from(er: &ScError) -> Self

Converts to this type from the input type.
source§

impl From<&StringObject> for Val

source§

fn from(b: &StringObject) -> Self

Converts to this type from the input type.
source§

impl From<&Symbol> for Val

source§

fn from(b: &Symbol) -> Self

Converts to this type from the input type.
source§

impl From<&SymbolObject> for Val

source§

fn from(b: &SymbolObject) -> Self

Converts to this type from the input type.
source§

impl From<&SymbolSmall> for Val

source§

fn from(b: &SymbolSmall) -> Self

Converts to this type from the input type.
source§

impl From<&TimepointObject> for Val

source§

fn from(b: &TimepointObject) -> Self

Converts to this type from the input type.
source§

impl From<&TimepointSmall> for Val

source§

fn from(b: &TimepointSmall) -> Self

Converts to this type from the input type.
source§

impl From<&TimepointVal> for Val

source§

fn from(b: &TimepointVal) -> Self

Converts to this type from the input type.
source§

impl From<&U128Object> for Val

source§

fn from(b: &U128Object) -> Self

Converts to this type from the input type.
source§

impl From<&U128Small> for Val

source§

fn from(b: &U128Small) -> Self

Converts to this type from the input type.
source§

impl From<&U128Val> for Val

source§

fn from(b: &U128Val) -> Self

Converts to this type from the input type.
source§

impl From<&U256Object> for Val

source§

fn from(b: &U256Object) -> Self

Converts to this type from the input type.
source§

impl From<&U256Small> for Val

source§

fn from(b: &U256Small) -> Self

Converts to this type from the input type.
source§

impl From<&U256Val> for Val

source§

fn from(b: &U256Val) -> Self

Converts to this type from the input type.
source§

impl From<&U32Val> for Val

source§

fn from(b: &U32Val) -> Self

Converts to this type from the input type.
source§

impl From<&U64Object> for Val

source§

fn from(b: &U64Object) -> Self

Converts to this type from the input type.
source§

impl From<&U64Small> for Val

source§

fn from(b: &U64Small) -> Self

Converts to this type from the input type.
source§

impl From<&U64Val> for Val

source§

fn from(b: &U64Val) -> Self

Converts to this type from the input type.
source§

impl From<&VecObject> for Val

source§

fn from(b: &VecObject) -> Self

Converts to this type from the input type.
source§

impl From<&Void> for Val

source§

fn from(b: &Void) -> Self

Converts to this type from the input type.
source§

impl From<&i32> for Val

source§

fn from(i: &i32) -> Self

Converts to this type from the input type.
source§

impl From<&u32> for Val

source§

fn from(u: &u32) -> Self

Converts to this type from the input type.
source§

impl From<()> for Val

source§

fn from(_: ()) -> Self

Converts to this type from the input type.
source§

impl From<AddressObject> for Val

source§

fn from(b: AddressObject) -> Self

Converts to this type from the input type.
source§

impl From<Bool> for Val

source§

fn from(b: Bool) -> Self

Converts to this type from the input type.
source§

impl From<BytesObject> for Val

source§

fn from(b: BytesObject) -> Self

Converts to this type from the input type.
source§

impl From<DurationObject> for Val

source§

fn from(b: DurationObject) -> Self

Converts to this type from the input type.
source§

impl From<DurationSmall> for Val

source§

fn from(b: DurationSmall) -> Self

Converts to this type from the input type.
source§

impl From<DurationVal> for Val

source§

fn from(b: DurationVal) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Val

source§

fn from(b: Error) -> Self

Converts to this type from the input type.
source§

impl From<I128Object> for Val

source§

fn from(b: I128Object) -> Self

Converts to this type from the input type.
source§

impl From<I128Small> for Val

source§

fn from(b: I128Small) -> Self

Converts to this type from the input type.
source§

impl From<I128Val> for Val

source§

fn from(b: I128Val) -> Self

Converts to this type from the input type.
source§

impl From<I256Object> for Val

source§

fn from(b: I256Object) -> Self

Converts to this type from the input type.
source§

impl From<I256Small> for Val

source§

fn from(b: I256Small) -> Self

Converts to this type from the input type.
source§

impl From<I256Val> for Val

source§

fn from(b: I256Val) -> Self

Converts to this type from the input type.
source§

impl From<I32Val> for Val

source§

fn from(b: I32Val) -> Self

Converts to this type from the input type.
source§

impl From<I64Object> for Val

source§

fn from(b: I64Object) -> Self

Converts to this type from the input type.
source§

impl From<I64Small> for Val

source§

fn from(b: I64Small) -> Self

Converts to this type from the input type.
source§

impl From<I64Val> for Val

source§

fn from(b: I64Val) -> Self

Converts to this type from the input type.
source§

impl From<MapObject> for Val

source§

fn from(b: MapObject) -> Self

Converts to this type from the input type.
source§

impl From<Object> for Val

source§

fn from(b: Object) -> Self

Converts to this type from the input type.
source§

impl From<ScError> for Val

source§

fn from(er: ScError) -> Self

Converts to this type from the input type.
source§

impl From<StringObject> for Val

source§

fn from(b: StringObject) -> Self

Converts to this type from the input type.
source§

impl From<Symbol> for Val

source§

fn from(b: Symbol) -> Self

Converts to this type from the input type.
source§

impl From<SymbolObject> for Val

source§

fn from(b: SymbolObject) -> Self

Converts to this type from the input type.
source§

impl From<SymbolSmall> for Val

source§

fn from(b: SymbolSmall) -> Self

Converts to this type from the input type.
source§

impl From<TimepointObject> for Val

source§

fn from(b: TimepointObject) -> Self

Converts to this type from the input type.
source§

impl From<TimepointSmall> for Val

source§

fn from(b: TimepointSmall) -> Self

Converts to this type from the input type.
source§

impl From<TimepointVal> for Val

source§

fn from(b: TimepointVal) -> Self

Converts to this type from the input type.
source§

impl From<U128Object> for Val

source§

fn from(b: U128Object) -> Self

Converts to this type from the input type.
source§

impl From<U128Small> for Val

source§

fn from(b: U128Small) -> Self

Converts to this type from the input type.
source§

impl From<U128Val> for Val

source§

fn from(b: U128Val) -> Self

Converts to this type from the input type.
source§

impl From<U256Object> for Val

source§

fn from(b: U256Object) -> Self

Converts to this type from the input type.
source§

impl From<U256Small> for Val

source§

fn from(b: U256Small) -> Self

Converts to this type from the input type.
source§

impl From<U256Val> for Val

source§

fn from(b: U256Val) -> Self

Converts to this type from the input type.
source§

impl From<U32Val> for Val

source§

fn from(b: U32Val) -> Self

Converts to this type from the input type.
source§

impl From<U64Object> for Val

source§

fn from(b: U64Object) -> Self

Converts to this type from the input type.
source§

impl From<U64Small> for Val

source§

fn from(b: U64Small) -> Self

Converts to this type from the input type.
source§

impl From<U64Val> for Val

source§

fn from(b: U64Val) -> Self

Converts to this type from the input type.
source§

impl From<VecObject> for Val

source§

fn from(b: VecObject) -> Self

Converts to this type from the input type.
source§

impl From<Void> for Val

source§

fn from(b: Void) -> Self

Converts to this type from the input type.
source§

impl From<bool> for Val

source§

fn from(b: bool) -> Self

Converts to this type from the input type.
source§

impl From<i32> for Val

source§

fn from(i: i32) -> Self

Converts to this type from the input type.
source§

impl From<u32> for Val

source§

fn from(u: u32) -> Self

Converts to this type from the input type.
source§

impl Hash for Val

source§

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

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 TryFrom<&Val> for ()

§

type Error = ConversionError

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

fn try_from(v: &Val) -> Result<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Val> for i32

§

type Error = ConversionError

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

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

Performs the conversion.
source§

impl TryFrom<&Val> for u32

§

type Error = ConversionError

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

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

Performs the conversion.
source§

impl TryFrom<Val> for ()

§

type Error = ConversionError

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

fn try_from(v: Val) -> Result<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Val> for i32

§

type Error = ConversionError

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

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

Performs the conversion.
source§

impl TryFrom<Val> for u32

§

type Error = ConversionError

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

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

Performs the conversion.
source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

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

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

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

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = Error

source§

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

source§

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

§

type Error = ConversionError

source§

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

source§

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

§

type Error = Error

source§

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

source§

impl WasmiMarshal for Val

source§

impl Copy for Val

Auto Trait Implementations§

§

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

§

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

§

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

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

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

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

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

§

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