Struct scrypto::data::scrypto::ScryptoCustomExtension
source · pub struct ScryptoCustomExtension {}
Trait Implementations§
source§impl Clone for ScryptoCustomExtension
impl Clone for ScryptoCustomExtension
source§fn clone(&self) -> ScryptoCustomExtension
fn clone(&self) -> ScryptoCustomExtension
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl CustomExtension for ScryptoCustomExtension
impl CustomExtension for ScryptoCustomExtension
const PAYLOAD_PREFIX: u8 = 92u8
type CustomValueKind = ScryptoCustomValueKind
type CustomTraversal = ScryptoCustomTraversal
type CustomSchema = ScryptoCustomSchema
source§fn custom_value_kind_matches_type_kind(
_: &SchemaV1<<ScryptoCustomExtension as CustomExtension>::CustomSchema>,
custom_value_kind: <ScryptoCustomExtension as CustomExtension>::CustomValueKind,
type_kind: &TypeKind<<<ScryptoCustomExtension as CustomExtension>::CustomSchema as CustomSchema>::CustomTypeKind<LocalTypeId>, LocalTypeId>
) -> bool
fn custom_value_kind_matches_type_kind( _: &SchemaV1<<ScryptoCustomExtension as CustomExtension>::CustomSchema>, custom_value_kind: <ScryptoCustomExtension as CustomExtension>::CustomValueKind, type_kind: &TypeKind<<<ScryptoCustomExtension as CustomExtension>::CustomSchema as CustomSchema>::CustomTypeKind<LocalTypeId>, LocalTypeId> ) -> bool
Used in the typed traverser Read more
source§fn custom_type_kind_matches_non_custom_value_kind(
_: &SchemaV1<<ScryptoCustomExtension as CustomExtension>::CustomSchema>,
_: &<<ScryptoCustomExtension as CustomExtension>::CustomSchema as CustomSchema>::CustomTypeKind<LocalTypeId>,
_: ValueKind<<ScryptoCustomExtension as CustomExtension>::CustomValueKind>
) -> bool
fn custom_type_kind_matches_non_custom_value_kind( _: &SchemaV1<<ScryptoCustomExtension as CustomExtension>::CustomSchema>, _: &<<ScryptoCustomExtension as CustomExtension>::CustomSchema as CustomSchema>::CustomTypeKind<LocalTypeId>, _: ValueKind<<ScryptoCustomExtension as CustomExtension>::CustomValueKind> ) -> bool
Used in the typed traverser Read more
source§impl Debug for ScryptoCustomExtension
impl Debug for ScryptoCustomExtension
source§impl FormattableCustomExtension for ScryptoCustomExtension
impl FormattableCustomExtension for ScryptoCustomExtension
type CustomDisplayContext<'a> = ScryptoValueDisplayContext<'a>
source§fn display_string_content<F, 's, 'de, 'a, 't, 's1, 's2>(
f: &mut F,
context: &<ScryptoCustomExtension as FormattableCustomExtension>::CustomDisplayContext<'a>,
value: &<<ScryptoCustomExtension as CustomExtension>::CustomTraversal as CustomTraversal>::CustomTerminalValueRef<'de>
) -> Result<(), Error>where
F: Write,
fn display_string_content<F, 's, 'de, 'a, 't, 's1, 's2>(
f: &mut F,
context: &<ScryptoCustomExtension as FormattableCustomExtension>::CustomDisplayContext<'a>,
value: &<<ScryptoCustomExtension as CustomExtension>::CustomTraversal as CustomTraversal>::CustomTerminalValueRef<'de>
) -> Result<(), Error>where
F: Write,
The gives the inner formatted representation of the value.
This function should write the value content to the formatter. Read more
source§impl PartialEq for ScryptoCustomExtension
impl PartialEq for ScryptoCustomExtension
source§fn eq(&self, other: &ScryptoCustomExtension) -> bool
fn eq(&self, other: &ScryptoCustomExtension) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SerializableCustomExtension for ScryptoCustomExtension
impl SerializableCustomExtension for ScryptoCustomExtension
fn map_value_for_serialization<'de, 't, 's1, 's2, 's, 'a>( context: &SerializationContext<'s, 'a, ScryptoCustomExtension>, _: LocalTypeId, custom_value: <<ScryptoCustomExtension as CustomExtension>::CustomTraversal as CustomTraversal>::CustomTerminalValueRef<'de> ) -> CustomTypeSerialization<'a, 't, 'de, 's1, 's2, ScryptoCustomExtension>
source§impl<'a> ValidatableCustomExtension<()> for ScryptoCustomExtension
impl<'a> ValidatableCustomExtension<()> for ScryptoCustomExtension
fn apply_validation_for_custom_value<'de>( schema: &SchemaV1<<ScryptoCustomExtension as CustomExtension>::CustomSchema>, custom_value: &<<ScryptoCustomExtension as CustomExtension>::CustomTraversal as CustomTraversal>::CustomTerminalValueRef<'de>, type_id: LocalTypeId, _: &() ) -> Result<(), PayloadValidationError<ScryptoCustomExtension>>
fn apply_custom_type_validation_for_non_custom_value<'de>( _: &SchemaV1<<ScryptoCustomExtension as CustomExtension>::CustomSchema>, _: &<<ScryptoCustomExtension as CustomExtension>::CustomSchema as CustomSchema>::CustomTypeValidation, _: &TerminalValueRef<'de, <ScryptoCustomExtension as CustomExtension>::CustomTraversal>, _: &() ) -> Result<(), PayloadValidationError<ScryptoCustomExtension>>
impl Copy for ScryptoCustomExtension
impl Eq for ScryptoCustomExtension
impl StructuralPartialEq for ScryptoCustomExtension
Auto Trait Implementations§
impl RefUnwindSafe for ScryptoCustomExtension
impl Send for ScryptoCustomExtension
impl Sync for ScryptoCustomExtension
impl Unpin for ScryptoCustomExtension
impl UnwindSafe for ScryptoCustomExtension
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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<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.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more