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 duplicate 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(
_: &Schema<Self::CustomSchema>,
custom_value_kind: Self::CustomValueKind,
type_kind: &LocalTypeKind<Self::CustomSchema>,
) -> bool
fn custom_value_kind_matches_type_kind( _: &Schema<Self::CustomSchema>, custom_value_kind: Self::CustomValueKind, type_kind: &LocalTypeKind<Self::CustomSchema>, ) -> bool
Used in the typed traverser Read more
Source§fn custom_type_kind_matches_non_custom_value_kind(
_: &Schema<Self::CustomSchema>,
_: &<Self::CustomSchema as CustomSchema>::CustomLocalTypeKind,
_: ValueKind<Self::CustomValueKind>,
) -> bool
fn custom_type_kind_matches_non_custom_value_kind( _: &Schema<Self::CustomSchema>, _: &<Self::CustomSchema as CustomSchema>::CustomLocalTypeKind, _: ValueKind<Self::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<'s, 'de, 'a, 't, 's1, 's2, F: Write>(
f: &mut F,
context: &Self::CustomDisplayContext<'a>,
value: &<Self::CustomTraversal as CustomTraversal>::CustomTerminalValueRef<'de>,
) -> Result<(), Error>
fn display_string_content<'s, 'de, 'a, 't, 's1, 's2, F: Write>( f: &mut F, context: &Self::CustomDisplayContext<'a>, value: &<Self::CustomTraversal as CustomTraversal>::CustomTerminalValueRef<'de>, ) -> Result<(), Error>
The gives the inner formatted representation of the value.
This function should write the value content to the formatter. Read more
Source§fn debug_string_content<'s, 'de, 'a, 't, 's1, 's2, F: Write>(
f: &mut F,
context: &Self::CustomDisplayContext<'a>,
value: &<Self::CustomTraversal as CustomTraversal>::CustomTerminalValueRef<'de>,
) -> Result<(), Error>
fn debug_string_content<'s, 'de, 'a, 't, 's1, 's2, F: Write>( f: &mut F, context: &Self::CustomDisplayContext<'a>, value: &<Self::CustomTraversal as CustomTraversal>::CustomTerminalValueRef<'de>, ) -> Result<(), Error>
The gives the inner debug representation of the value.
This function should write the value content to the formatter. Read more
Source§fn code_generation_string_content<'s, 'de, 'a, 't, 's1, 's2, F: Write>(
f: &mut F,
context: &Self::CustomDisplayContext<'a>,
value: &<Self::CustomTraversal as CustomTraversal>::CustomTerminalValueRef<'de>,
) -> Result<(), Error>
fn code_generation_string_content<'s, 'de, 'a, 't, 's1, 's2, F: Write>( f: &mut F, context: &Self::CustomDisplayContext<'a>, value: &<Self::CustomTraversal as CustomTraversal>::CustomTerminalValueRef<'de>, ) -> Result<(), Error>
This should output code to generate the value.
Source§impl PartialEq for ScryptoCustomExtension
impl PartialEq for ScryptoCustomExtension
Source§impl<'a> ValidatableCustomExtension<()> for ScryptoCustomExtension
impl<'a> ValidatableCustomExtension<()> for ScryptoCustomExtension
fn apply_validation_for_custom_value<'de>( schema: &Schema<Self::CustomSchema>, custom_value: &<Self::CustomTraversal as CustomTraversal>::CustomTerminalValueRef<'de>, type_id: LocalTypeId, _: &(), ) -> Result<(), PayloadValidationError<Self>>
fn apply_custom_type_validation_for_non_custom_value<'de>( _: &Schema<Self::CustomSchema>, _: &<Self::CustomSchema as CustomSchema>::CustomTypeValidation, _: &TerminalValueRef<'de, Self::CustomTraversal>, _: &(), ) -> Result<(), PayloadValidationError<Self>>
impl Copy for ScryptoCustomExtension
impl Eq for ScryptoCustomExtension
impl StructuralPartialEq for ScryptoCustomExtension
Auto Trait Implementations§
impl Freeze for ScryptoCustomExtension
impl RefUnwindSafe for ScryptoCustomExtension
impl Send for ScryptoCustomExtension
impl Sync for ScryptoCustomExtension
impl Unpin for ScryptoCustomExtension
impl UnwindSafe for ScryptoCustomExtension
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<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
type Error = <U as ContextualTryFrom<T>>::Error
type Context = <U as ContextualTryFrom<T>>::Context
fn contextual_try_into( self, context: &<U as ContextualTryFrom<T>>::Context, ) -> Result<U, <U as ContextualTryFrom<T>>::Error>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.