pub enum ScVal {
Show 22 variants
Bool(bool),
Void,
Error(ScError),
U32(u32),
I32(i32),
U64(u64),
I64(i64),
Timepoint(TimePoint),
Duration(Duration),
U128(UInt128Parts),
I128(Int128Parts),
U256(UInt256Parts),
I256(Int256Parts),
Bytes(ScBytes),
String(ScString),
Symbol(ScSymbol),
Vec(Option<ScVec>),
Map(Option<ScMap>),
Address(ScAddress),
ContractInstance(ScContractInstance),
LedgerKeyContractInstance,
LedgerKeyNonce(ScNonceKey),
}Expand description
ScVal is an XDR Union defined as:
union SCVal switch (SCValType type)
{
case SCV_BOOL:
bool b;
case SCV_VOID:
void;
case SCV_ERROR:
SCError error;
case SCV_U32:
uint32 u32;
case SCV_I32:
int32 i32;
case SCV_U64:
uint64 u64;
case SCV_I64:
int64 i64;
case SCV_TIMEPOINT:
TimePoint timepoint;
case SCV_DURATION:
Duration duration;
case SCV_U128:
UInt128Parts u128;
case SCV_I128:
Int128Parts i128;
case SCV_U256:
UInt256Parts u256;
case SCV_I256:
Int256Parts i256;
case SCV_BYTES:
SCBytes bytes;
case SCV_STRING:
SCString str;
case SCV_SYMBOL:
SCSymbol sym;
// Vec and Map are recursive so need to live
// behind an option, due to xdrpp limitations.
case SCV_VEC:
SCVec *vec;
case SCV_MAP:
SCMap *map;
case SCV_ADDRESS:
SCAddress address;
// Special SCVals reserved for system-constructed contract-data
// ledger keys, not generally usable elsewhere.
case SCV_CONTRACT_INSTANCE:
SCContractInstance instance;
case SCV_LEDGER_KEY_CONTRACT_INSTANCE:
void;
case SCV_LEDGER_KEY_NONCE:
SCNonceKey nonce_key;
};Variants§
Bool(bool)
Void
Error(ScError)
U32(u32)
I32(i32)
U64(u64)
I64(i64)
Timepoint(TimePoint)
Duration(Duration)
U128(UInt128Parts)
I128(Int128Parts)
U256(UInt256Parts)
I256(Int256Parts)
Bytes(ScBytes)
String(ScString)
Symbol(ScSymbol)
Vec(Option<ScVec>)
Map(Option<ScMap>)
Address(ScAddress)
ContractInstance(ScContractInstance)
LedgerKeyContractInstance
LedgerKeyNonce(ScNonceKey)
Implementations§
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for ScVal
impl<'arbitrary> Arbitrary<'arbitrary> for ScVal
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<ScVal, Error>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<ScVal, Error>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<ScVal, Error>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<ScVal, Error>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§impl<'de> Deserialize<'de> for ScVal
impl<'de> Deserialize<'de> for ScVal
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScVal, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScVal, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Discriminant<ScValType> for ScVal
impl Discriminant<ScValType> for ScVal
fn discriminant(&self) -> ScValType
Source§impl From<&Bls12381Fp> for ScVal
Available on non-target_family=wasm only.
impl From<&Bls12381Fp> for ScVal
Available on non-
target_family=wasm only.Source§fn from(v: &Bls12381Fp) -> ScVal
fn from(v: &Bls12381Fp) -> ScVal
Converts to this type from the input type.
Source§impl From<&Bls12381Fp2> for ScVal
Available on non-target_family=wasm only.
impl From<&Bls12381Fp2> for ScVal
Available on non-
target_family=wasm only.Source§fn from(v: &Bls12381Fp2) -> ScVal
fn from(v: &Bls12381Fp2) -> ScVal
Converts to this type from the input type.
Source§impl From<&Bls12381G1Affine> for ScVal
Available on non-target_family=wasm only.
impl From<&Bls12381G1Affine> for ScVal
Available on non-
target_family=wasm only.Source§fn from(v: &Bls12381G1Affine) -> ScVal
fn from(v: &Bls12381G1Affine) -> ScVal
Converts to this type from the input type.
Source§impl From<&Bls12381G2Affine> for ScVal
Available on non-target_family=wasm only.
impl From<&Bls12381G2Affine> for ScVal
Available on non-
target_family=wasm only.Source§fn from(v: &Bls12381G2Affine) -> ScVal
fn from(v: &Bls12381G2Affine) -> ScVal
Converts to this type from the input type.
Source§impl From<&Bn254G1Affine> for ScVal
Available on non-target_family=wasm only.
impl From<&Bn254G1Affine> for ScVal
Available on non-
target_family=wasm only.Source§fn from(v: &Bn254G1Affine) -> ScVal
fn from(v: &Bn254G1Affine) -> ScVal
Converts to this type from the input type.
Source§impl From<&Bn254G2Affine> for ScVal
Available on non-target_family=wasm only.
impl From<&Bn254G2Affine> for ScVal
Available on non-
target_family=wasm only.Source§fn from(v: &Bn254G2Affine) -> ScVal
fn from(v: &Bn254G2Affine) -> ScVal
Converts to this type from the input type.
Source§impl From<&MuxedAddress> for ScVal
Available on non-target_family=wasm only.
impl From<&MuxedAddress> for ScVal
Available on non-
target_family=wasm only.Source§fn from(v: &MuxedAddress) -> ScVal
fn from(v: &MuxedAddress) -> ScVal
Converts to this type from the input type.
Source§impl From<Bls12381Fp> for ScVal
Available on non-target_family=wasm only.
impl From<Bls12381Fp> for ScVal
Available on non-
target_family=wasm only.Source§fn from(v: Bls12381Fp) -> ScVal
fn from(v: Bls12381Fp) -> ScVal
Converts to this type from the input type.
Source§impl From<Bls12381Fp2> for ScVal
Available on non-target_family=wasm only.
impl From<Bls12381Fp2> for ScVal
Available on non-
target_family=wasm only.Source§fn from(v: Bls12381Fp2) -> ScVal
fn from(v: Bls12381Fp2) -> ScVal
Converts to this type from the input type.
Source§impl From<Bls12381G1Affine> for ScVal
Available on non-target_family=wasm only.
impl From<Bls12381G1Affine> for ScVal
Available on non-
target_family=wasm only.Source§fn from(v: Bls12381G1Affine) -> ScVal
fn from(v: Bls12381G1Affine) -> ScVal
Converts to this type from the input type.
Source§impl From<Bls12381G2Affine> for ScVal
Available on non-target_family=wasm only.
impl From<Bls12381G2Affine> for ScVal
Available on non-
target_family=wasm only.Source§fn from(v: Bls12381G2Affine) -> ScVal
fn from(v: Bls12381G2Affine) -> ScVal
Converts to this type from the input type.
Source§impl From<Bn254G1Affine> for ScVal
Available on non-target_family=wasm only.
impl From<Bn254G1Affine> for ScVal
Available on non-
target_family=wasm only.Source§fn from(v: Bn254G1Affine) -> ScVal
fn from(v: Bn254G1Affine) -> ScVal
Converts to this type from the input type.
Source§impl From<Bn254G2Affine> for ScVal
Available on non-target_family=wasm only.
impl From<Bn254G2Affine> for ScVal
Available on non-
target_family=wasm only.Source§fn from(v: Bn254G2Affine) -> ScVal
fn from(v: Bn254G2Affine) -> ScVal
Converts to this type from the input type.
Source§impl From<MuxedAddress> for ScVal
Available on non-target_family=wasm only.
impl From<MuxedAddress> for ScVal
Available on non-
target_family=wasm only.Source§fn from(v: MuxedAddress) -> ScVal
fn from(v: MuxedAddress) -> ScVal
Converts to this type from the input type.
Source§impl<'a> From<ScValObjRef<'a>> for &'a ScVal
impl<'a> From<ScValObjRef<'a>> for &'a ScVal
Source§fn from(val: ScValObjRef<'a>) -> &'a ScVal
fn from(val: ScValObjRef<'a>) -> &'a ScVal
Converts to this type from the input type.
Source§impl From<ScValObject> for ScVal
impl From<ScValObject> for ScVal
Source§fn from(value: ScValObject) -> ScVal
fn from(value: ScValObject) -> ScVal
Converts to this type from the input type.
Source§impl JsonSchema for ScVal
impl JsonSchema for ScVal
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Ord for ScVal
impl Ord for ScVal
Source§impl PartialOrd for ScVal
impl PartialOrd for ScVal
Source§impl ReadXdr for ScVal
impl ReadXdr for ScVal
Source§fn read_xdr<R>(r: &mut Limited<R>) -> Result<ScVal, Error>where
R: Read,
fn read_xdr<R>(r: &mut Limited<R>) -> Result<ScVal, Error>where
R: Read,
Read the XDR and construct the type. Read more
Source§fn read_xdr_base64<R>(r: &mut Limited<R>) -> Result<Self, Error>where
R: Read,
fn read_xdr_base64<R>(r: &mut Limited<R>) -> Result<Self, Error>where
R: Read,
Construct the type from the XDR bytes base64 encoded. Read more
Source§fn read_xdr_to_end<R>(r: &mut Limited<R>) -> Result<Self, Error>where
R: Read,
fn read_xdr_to_end<R>(r: &mut Limited<R>) -> Result<Self, Error>where
R: Read,
Read the XDR and construct the type, and consider it an error if the
read does not completely consume the read implementation. Read more
Source§fn read_xdr_base64_to_end<R>(r: &mut Limited<R>) -> Result<Self, Error>where
R: Read,
fn read_xdr_base64_to_end<R>(r: &mut Limited<R>) -> Result<Self, Error>where
R: Read,
Construct the type from the XDR bytes base64 encoded. Read more
Source§fn read_xdr_into<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
fn read_xdr_into<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
Read the XDR and construct the type. Read more
Source§fn read_xdr_into_to_end<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
fn read_xdr_into_to_end<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
Read the XDR into the existing value, and consider it an error if the
read does not completely consume the read implementation. Read more
Source§fn read_xdr_iter<R>(r: &mut Limited<R>) -> ReadXdrIter<&mut R, Self> ⓘwhere
R: Read,
fn read_xdr_iter<R>(r: &mut Limited<R>) -> ReadXdrIter<&mut R, Self> ⓘwhere
R: Read,
Create an iterator that reads the read implementation as a stream of
values that are read into the implementing type. Read more
Source§fn read_xdr_base64_iter<R>(
r: &mut Limited<R>,
) -> ReadXdrIter<DecoderReader<'_, GeneralPurpose, SkipWhitespace<&mut R>>, Self> ⓘwhere
R: Read,
fn read_xdr_base64_iter<R>(
r: &mut Limited<R>,
) -> ReadXdrIter<DecoderReader<'_, GeneralPurpose, SkipWhitespace<&mut R>>, Self> ⓘwhere
R: Read,
Create an iterator that reads the read implementation as a stream of
values that are read into the implementing type.
Source§impl Serialize for ScVal
impl Serialize for ScVal
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl<T0, T1, T2> TryFrom<&(T0, T1, T2)> for ScVal
Available on crate feature alloc only.
impl<T0, T1, T2> TryFrom<&(T0, T1, T2)> for ScVal
Available on crate feature
alloc only.Source§impl<T0, T1, T2, T3> TryFrom<&(T0, T1, T2, T3)> for ScVal
Available on crate feature alloc only.
impl<T0, T1, T2, T3> TryFrom<&(T0, T1, T2, T3)> for ScVal
Available on crate feature
alloc only.Source§impl<T0, T1, T2, T3, T4> TryFrom<&(T0, T1, T2, T3, T4)> for ScVal
Available on crate feature alloc only.
impl<T0, T1, T2, T3, T4> TryFrom<&(T0, T1, T2, T3, T4)> for ScVal
Available on crate feature
alloc only.Source§impl<T0, T1, T2, T3, T4, T5> TryFrom<&(T0, T1, T2, T3, T4, T5)> for ScVal
Available on crate feature alloc only.
impl<T0, T1, T2, T3, T4, T5> TryFrom<&(T0, T1, T2, T3, T4, T5)> for ScVal
Available on crate feature
alloc only.Source§impl<T0, T1, T2, T3, T4, T5, T6> TryFrom<&(T0, T1, T2, T3, T4, T5, T6)> for ScVal
Available on crate feature alloc only.
impl<T0, T1, T2, T3, T4, T5, T6> TryFrom<&(T0, T1, T2, T3, T4, T5, T6)> for ScVal
Available on crate feature
alloc only.Source§impl<T0, T1, T2, T3, T4, T5, T6, T7> TryFrom<&(T0, T1, T2, T3, T4, T5, T6, T7)> for ScVal
Available on crate feature alloc only.
impl<T0, T1, T2, T3, T4, T5, T6, T7> TryFrom<&(T0, T1, T2, T3, T4, T5, T6, T7)> for ScVal
Available on crate feature
alloc only.Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> TryFrom<&(T0, T1, T2, T3, T4, T5, T6, T7, T8)> for ScVal
Available on crate feature alloc only.
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> TryFrom<&(T0, T1, T2, T3, T4, T5, T6, T7, T8)> for ScVal
Available on crate feature
alloc only.Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> TryFrom<&(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)> for ScVal
Available on crate feature alloc only.
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> TryFrom<&(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)> for ScVal
Available on crate feature
alloc only.Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> TryFrom<&(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> for ScValwhere
T0: TryInto<ScVal> + Clone,
T1: TryInto<ScVal> + Clone,
T2: TryInto<ScVal> + Clone,
T3: TryInto<ScVal> + Clone,
T4: TryInto<ScVal> + Clone,
T5: TryInto<ScVal> + Clone,
T6: TryInto<ScVal> + Clone,
T7: TryInto<ScVal> + Clone,
T8: TryInto<ScVal> + Clone,
T9: TryInto<ScVal> + Clone,
T10: TryInto<ScVal> + Clone,
Available on crate feature alloc only.
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> TryFrom<&(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> for ScValwhere
T0: TryInto<ScVal> + Clone,
T1: TryInto<ScVal> + Clone,
T2: TryInto<ScVal> + Clone,
T3: TryInto<ScVal> + Clone,
T4: TryInto<ScVal> + Clone,
T5: TryInto<ScVal> + Clone,
T6: TryInto<ScVal> + Clone,
T7: TryInto<ScVal> + Clone,
T8: TryInto<ScVal> + Clone,
T9: TryInto<ScVal> + Clone,
T10: TryInto<ScVal> + Clone,
Available on crate feature
alloc only.Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> TryFrom<&(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> for ScValwhere
T0: TryInto<ScVal> + Clone,
T1: TryInto<ScVal> + Clone,
T2: TryInto<ScVal> + Clone,
T3: TryInto<ScVal> + Clone,
T4: TryInto<ScVal> + Clone,
T5: TryInto<ScVal> + Clone,
T6: TryInto<ScVal> + Clone,
T7: TryInto<ScVal> + Clone,
T8: TryInto<ScVal> + Clone,
T9: TryInto<ScVal> + Clone,
T10: TryInto<ScVal> + Clone,
T11: TryInto<ScVal> + Clone,
Available on crate feature alloc only.
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> TryFrom<&(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> for ScValwhere
T0: TryInto<ScVal> + Clone,
T1: TryInto<ScVal> + Clone,
T2: TryInto<ScVal> + Clone,
T3: TryInto<ScVal> + Clone,
T4: TryInto<ScVal> + Clone,
T5: TryInto<ScVal> + Clone,
T6: TryInto<ScVal> + Clone,
T7: TryInto<ScVal> + Clone,
T8: TryInto<ScVal> + Clone,
T9: TryInto<ScVal> + Clone,
T10: TryInto<ScVal> + Clone,
T11: TryInto<ScVal> + Clone,
Available on crate feature
alloc only.Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> TryFrom<&(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> for ScValwhere
T0: TryInto<ScVal> + Clone,
T1: TryInto<ScVal> + Clone,
T2: TryInto<ScVal> + Clone,
T3: TryInto<ScVal> + Clone,
T4: TryInto<ScVal> + Clone,
T5: TryInto<ScVal> + Clone,
T6: TryInto<ScVal> + Clone,
T7: TryInto<ScVal> + Clone,
T8: TryInto<ScVal> + Clone,
T9: TryInto<ScVal> + Clone,
T10: TryInto<ScVal> + Clone,
T11: TryInto<ScVal> + Clone,
T12: TryInto<ScVal> + Clone,
Available on crate feature alloc only.
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> TryFrom<&(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> for ScValwhere
T0: TryInto<ScVal> + Clone,
T1: TryInto<ScVal> + Clone,
T2: TryInto<ScVal> + Clone,
T3: TryInto<ScVal> + Clone,
T4: TryInto<ScVal> + Clone,
T5: TryInto<ScVal> + Clone,
T6: TryInto<ScVal> + Clone,
T7: TryInto<ScVal> + Clone,
T8: TryInto<ScVal> + Clone,
T9: TryInto<ScVal> + Clone,
T10: TryInto<ScVal> + Clone,
T11: TryInto<ScVal> + Clone,
T12: TryInto<ScVal> + Clone,
Available on crate feature
alloc only.Source§impl TryFrom<&DurationSmall> for ScVal
impl TryFrom<&DurationSmall> for ScVal
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: &DurationSmall) -> Result<ScVal, ConversionError>
fn try_from(value: &DurationSmall) -> Result<ScVal, ConversionError>
Performs the conversion.
Source§impl TryFrom<&SymbolSmall> for ScVal
Available on crate feature std only.
impl TryFrom<&SymbolSmall> for ScVal
Available on crate feature
std only.Source§impl TryFrom<&TimepointSmall> for ScVal
impl TryFrom<&TimepointSmall> for ScVal
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: &TimepointSmall) -> Result<ScVal, ConversionError>
fn try_from(value: &TimepointSmall) -> Result<ScVal, ConversionError>
Performs the conversion.
Source§impl<T0, T1, T2> TryFrom<(T0, T1, T2)> for ScVal
Available on crate feature alloc only.
impl<T0, T1, T2> TryFrom<(T0, T1, T2)> for ScVal
Available on crate feature
alloc only.Source§impl<T0, T1, T2, T3> TryFrom<(T0, T1, T2, T3)> for ScVal
Available on crate feature alloc only.
impl<T0, T1, T2, T3> TryFrom<(T0, T1, T2, T3)> for ScVal
Available on crate feature
alloc only.Source§impl<T0, T1, T2, T3, T4> TryFrom<(T0, T1, T2, T3, T4)> for ScVal
Available on crate feature alloc only.
impl<T0, T1, T2, T3, T4> TryFrom<(T0, T1, T2, T3, T4)> for ScVal
Available on crate feature
alloc only.Source§impl<T0, T1, T2, T3, T4, T5> TryFrom<(T0, T1, T2, T3, T4, T5)> for ScVal
Available on crate feature alloc only.
impl<T0, T1, T2, T3, T4, T5> TryFrom<(T0, T1, T2, T3, T4, T5)> for ScVal
Available on crate feature
alloc only.Source§impl<T0, T1, T2, T3, T4, T5, T6> TryFrom<(T0, T1, T2, T3, T4, T5, T6)> for ScVal
Available on crate feature alloc only.
impl<T0, T1, T2, T3, T4, T5, T6> TryFrom<(T0, T1, T2, T3, T4, T5, T6)> for ScVal
Available on crate feature
alloc only.Source§impl<T0, T1, T2, T3, T4, T5, T6, T7> TryFrom<(T0, T1, T2, T3, T4, T5, T6, T7)> for ScVal
Available on crate feature alloc only.
impl<T0, T1, T2, T3, T4, T5, T6, T7> TryFrom<(T0, T1, T2, T3, T4, T5, T6, T7)> for ScVal
Available on crate feature
alloc only.Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> TryFrom<(T0, T1, T2, T3, T4, T5, T6, T7, T8)> for ScVal
Available on crate feature alloc only.
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> TryFrom<(T0, T1, T2, T3, T4, T5, T6, T7, T8)> for ScVal
Available on crate feature
alloc only.Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> TryFrom<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)> for ScVal
Available on crate feature alloc only.
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> TryFrom<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)> for ScVal
Available on crate feature
alloc only.Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> TryFrom<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> for ScVal
Available on crate feature alloc only.
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> TryFrom<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> for ScVal
Available on crate feature
alloc only.Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> TryFrom<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> for ScVal
Available on crate feature alloc only.
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> TryFrom<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> for ScVal
Available on crate feature
alloc only.Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> TryFrom<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> for ScVal
Available on crate feature alloc only.
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> TryFrom<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> for ScVal
Available on crate feature
alloc only.Source§impl TryFrom<DurationSmall> for ScVal
impl TryFrom<DurationSmall> for ScVal
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: DurationSmall) -> Result<ScVal, ConversionError>
fn try_from(value: DurationSmall) -> Result<ScVal, ConversionError>
Performs the conversion.
Source§impl TryFrom<SymbolSmall> for ScVal
Available on crate feature std only.
impl TryFrom<SymbolSmall> for ScVal
Available on crate feature
std only.Source§impl TryFrom<TimepointSmall> for ScVal
impl TryFrom<TimepointSmall> for ScVal
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TimepointSmall) -> Result<ScVal, ConversionError>
fn try_from(value: TimepointSmall) -> Result<ScVal, ConversionError>
Performs the conversion.
Source§impl<E> TryFromVal<E, Val> for ScValwhere
E: Env,
ScValObject: TryFromVal<E, Object>,
<ScValObject as TryFromVal<E, Object>>::Error: Into<Error>,
Available on crate feature std only.
impl<E> TryFromVal<E, Val> for ScValwhere
E: Env,
ScValObject: TryFromVal<E, Object>,
<ScValObject as TryFromVal<E, Object>>::Error: Into<Error>,
Available on crate feature
std only.Source§impl<K, V> TryFromVal<Env, Map<K, V>> for ScVal
Available on non-target_family=wasm only.
impl<K, V> TryFromVal<Env, Map<K, V>> for ScVal
Available on non-
target_family=wasm only.type Error = ConversionError
fn try_from_val(_e: &Env, v: &Map<K, V>) -> Result<ScVal, ConversionError>
Source§impl TryFromVal<Env, Symbol> for ScVal
Available on non-target_family=wasm only.
impl TryFromVal<Env, Symbol> for ScVal
Available on non-
target_family=wasm only.type Error = ConversionError
fn try_from_val(_e: &Env, v: &Symbol) -> Result<ScVal, ConversionError>
impl Eq for ScVal
impl StructuralPartialEq for ScVal
impl Union<ScValType> for ScVal
Auto Trait Implementations§
impl Freeze for ScVal
impl RefUnwindSafe for ScVal
impl Send for ScVal
impl Sync for ScVal
impl Unpin for ScVal
impl UnsafeUnpin for ScVal
impl UnwindSafe for ScVal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T, U, V, W, E, C> Compare<(T, U, V, W)> for C
impl<T, U, V, W, E, C> Compare<(T, U, V, W)> for C
type Error = E
fn compare( &self, a: &(T, U, V, W), b: &(T, U, V, W), ) -> Result<Ordering, <C as Compare<(T, U, V, W)>>::Error>
Source§impl<T, U, V, W, X, E, C> Compare<(T, U, V, W, X)> for C
impl<T, U, V, W, X, E, C> Compare<(T, U, V, W, X)> for C
type Error = E
fn compare( &self, a: &(T, U, V, W, X), b: &(T, U, V, W, X), ) -> Result<Ordering, <C as Compare<(T, U, V, W, X)>>::Error>
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn 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.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
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)
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)
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
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self to use its UpperHex implementation when
Debug-formatted.Source§impl<E, T, U> FromVal<E, T> for Uwhere
E: Env,
U: TryFromVal<E, T>,
impl<E, T, U> FromVal<E, T> for Uwhere
E: Env,
U: TryFromVal<E, T>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self, then passes self.deref() into the pipe function.Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.