Enum RuntimeError

Source
pub enum RuntimeError {
    KernelError(KernelError),
    SystemError(SystemError),
    SystemModuleError(SystemModuleError),
    SystemUpstreamError(SystemUpstreamError),
    VmError(VmError),
    ApplicationError(ApplicationError),
    FinalizationCostingError(CostingError),
}
Expand description

Represents an error when executing a transaction.

Variants§

§

KernelError(KernelError)

An error occurred within the kernel.

§

SystemError(SystemError)

An error occurred within the system, notably the SystemAPI implementation.

§

SystemModuleError(SystemModuleError)

An error occurred within a specific system module, like auth, costing and royalty. TODO: merge into SystemError?

§

SystemUpstreamError(SystemUpstreamError)

An error issued by the system when invoking upstream (such as blueprints, node modules). TODO: merge into SystemError?

§

VmError(VmError)

An error occurred in the vm layer

§

ApplicationError(ApplicationError)

An error occurred within application logic, like the RE models.

§

FinalizationCostingError(CostingError)

Implementations§

Trait Implementations§

Source§

impl CanBeAbortion for RuntimeError

Source§

impl Categorize<ScryptoCustomValueKind> for RuntimeError

Source§

impl Clone for RuntimeError

Source§

fn clone(&self) -> RuntimeError

Returns a duplicate 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<'a> ContextualDisplay<ScryptoValueDisplayContext<'a>> for RuntimeError

Source§

type Error = Error

Source§

fn contextual_format<F: Write>( &self, f: &mut F, context: &ScryptoValueDisplayContext<'_>, ) -> Result<(), Self::Error>

Formats the value to the given fmt::Write buffer, making use of the provided context. See also format, which is typically easier to use, as it takes an Into<Context> instead of a &Context.
Source§

fn format<F, TContext>( &self, f: &mut F, context: TContext, ) -> Result<(), Self::Error>
where F: Write, TContext: Into<Context>,

Formats the value to the given fmt::Write buffer, making use of the provided context. See also contextual_format, which takes a &Context instead of an Into<Context>. Read more
Source§

fn display<'a, 'b, TContext>( &'a self, context: TContext, ) -> ContextDisplayable<'a, Self, Context>
where TContext: Into<Context>,

Returns an object implementing fmt::Display, which can be used in a format! style macro. Read more
Source§

fn to_string<'a, 'b, TContext>(&'a self, context: TContext) -> String
where TContext: Into<Context>,

Source§

impl Debug for RuntimeError

Source§

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

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

impl<D: Decoder<ScryptoCustomValueKind>> Decode<ScryptoCustomValueKind, D> for RuntimeError

Source§

fn decode_body_with_value_kind( decoder: &mut D, value_kind: ValueKind<ScryptoCustomValueKind>, ) -> Result<Self, DecodeError>

Decodes the type from the decoder, which should match a preloaded value kind. Read more
Source§

impl Describe<ScryptoCustomTypeKind> for RuntimeError

Source§

const TYPE_ID: RustTypeId

The TYPE_ID should give a unique identifier for its SBOR schema type. An SBOR schema type capture details about the SBOR payload, how it should be interpreted, validated and displayed. Read more
Source§

fn type_data() -> TypeData<ScryptoCustomTypeKind, RustTypeId>

Returns the local schema for the given type. Read more
Source§

fn add_all_dependencies(aggregator: &mut TypeAggregator<ScryptoCustomTypeKind>)

For each type referenced in get_local_type_data, we need to ensure that the type and all of its own references get added to the aggregator. Read more
Source§

impl<E: Encoder<ScryptoCustomValueKind>> Encode<ScryptoCustomValueKind, E> for RuntimeError

Source§

fn encode_value_kind(&self, encoder: &mut E) -> Result<(), EncodeError>

Encodes the SBOR value’s kind to the encoder
Source§

fn encode_body(&self, encoder: &mut E) -> Result<(), EncodeError>

Encodes the SBOR body of the type to the encoder. Read more
Source§

impl From<AccessControllerError> for RuntimeError

Source§

fn from(value: AccessControllerError) -> Self

Converts to this type from the input type.
Source§

impl From<AccountError> for RuntimeError

Source§

fn from(value: AccountError) -> Self

Converts to this type from the input type.
Source§

impl From<ApplicationError> for RuntimeError

Source§

fn from(error: ApplicationError) -> Self

Converts to this type from the input type.
Source§

impl From<BucketError> for RuntimeError

Source§

fn from(bucket_error: BucketError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for RuntimeError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for RuntimeError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for RuntimeError

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl<E: SelfError> From<InvokeError<E>> for RuntimeError

Source§

fn from(error: InvokeError<E>) -> Self

Converts to this type from the input type.
Source§

impl From<KernelError> for RuntimeError

Source§

fn from(error: KernelError) -> Self

Converts to this type from the input type.
Source§

impl<E: SelfError> From<RuntimeError> for InvokeError<E>

Source§

fn from(runtime_error: RuntimeError) -> Self

Converts to this type from the input type.
Source§

impl From<SystemModuleError> for RuntimeError

Source§

fn from(error: SystemModuleError) -> Self

Converts to this type from the input type.
Source§

impl From<SystemUpstreamError> for RuntimeError

Source§

fn from(error: SystemUpstreamError) -> Self

Converts to this type from the input type.
Source§

impl<T> From<T> for RuntimeError
where T: Into<CallFrameError>,

Source§

fn from(value: T) -> Self

Converts to this type from the input type.
Source§

impl From<TransactionProcessorError> for RuntimeError

Source§

fn from(value: TransactionProcessorError) -> Self

Converts to this type from the input type.
Source§

impl From<VaultError> for RuntimeError

Source§

fn from(error: VaultError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for RuntimeError

Source§

fn eq(&self, other: &RuntimeError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl SborEnum<ScryptoCustomValueKind> for RuntimeError

Source§

impl<'a, Y: SystemBasedKernelApi> SystemActorApi<RuntimeError> for SystemService<'a, Y>

Source§

fn actor_get_blueprint_id(&mut self) -> Result<BlueprintId, RuntimeError>

Retrieve the current blueprint id
Source§

fn actor_get_node_id( &mut self, ref_handle: ActorRefHandle, ) -> Result<NodeId, RuntimeError>

Retrieve the current method actor’s node id
Source§

fn actor_is_feature_enabled( &mut self, object_handle: ActorStateHandle, feature: &str, ) -> Result<bool, RuntimeError>

Check if a feature is enabled for a given object
Source§

fn actor_open_field( &mut self, object_handle: ActorStateHandle, field_index: u8, flags: LockFlags, ) -> Result<SubstateHandle, RuntimeError>

Open a field in a given object for reading/writing
Source§

fn actor_emit_event( &mut self, event_name: String, event_data: Vec<u8>, event_flags: EventFlags, ) -> Result<(), RuntimeError>

Emits an event of the current actor
Source§

impl<'a, Y: SystemBasedKernelApi> SystemActorIndexApi<RuntimeError> for SystemService<'a, Y>

Source§

fn actor_index_insert( &mut self, object_handle: ActorStateHandle, collection_index: CollectionIndex, key: Vec<u8>, buffer: Vec<u8>, ) -> Result<(), RuntimeError>

Inserts an entry into an index
Source§

fn actor_index_remove( &mut self, object_handle: ActorStateHandle, collection_index: CollectionIndex, key: Vec<u8>, ) -> Result<Option<Vec<u8>>, RuntimeError>

Removes an entry from an index
Source§

fn actor_index_scan_keys( &mut self, object_handle: ActorStateHandle, collection_index: CollectionIndex, limit: u32, ) -> Result<Vec<Vec<u8>>, RuntimeError>

Scans arbitrary elements of count from an index
Source§

fn actor_index_drain( &mut self, object_handle: ActorStateHandle, collection_index: CollectionIndex, limit: u32, ) -> Result<Vec<(Vec<u8>, Vec<u8>)>, RuntimeError>

Removes and returns arbitrary elements of count from an index
Source§

fn actor_index_insert_typed<K, V>( &mut self, object_handle: u32, collection_index: u8, key: K, value: V, ) -> Result<(), E>

Inserts an entry into an index
Source§

fn actor_index_remove_typed<V>( &mut self, object_handle: u32, collection_index: u8, key: Vec<u8>, ) -> Result<Option<V>, E>
where V: ScryptoDecode,

Removes an entry from an index
Source§

fn actor_index_scan_keys_typed<K>( &mut self, object_handle: u32, collection_index: u8, limit: u32, ) -> Result<Vec<K>, E>
where K: ScryptoDecode,

Scans arbitrary elements of count from an index
Source§

fn actor_index_drain_typed<K, V>( &mut self, object_handle: u32, collection_index: u8, limit: u32, ) -> Result<Vec<(K, V)>, E>

Removes and returns arbitrary elements of count from an index
Source§

impl<'a, Y: SystemBasedKernelApi> SystemActorKeyValueEntryApi<RuntimeError> for SystemService<'a, Y>

Source§

fn actor_open_key_value_entry( &mut self, object_handle: ActorStateHandle, collection_index: CollectionIndex, key: &Vec<u8>, flags: LockFlags, ) -> Result<KeyValueEntryHandle, RuntimeError>

Returns a handle for a specified key value entry in a collection. If an invalid collection index or key is passed an error is returned.
Source§

fn actor_remove_key_value_entry( &mut self, object_handle: ActorStateHandle, collection_index: CollectionIndex, key: &Vec<u8>, ) -> Result<Vec<u8>, RuntimeError>

Removes an entry from a collection. If an invalid collection index or key is passed an error is returned, otherwise the encoding of a value of the entry is returned.
Source§

fn actor_remove_key_value_entry_typed<V>( &mut self, object_handle: u32, collection_index: u8, key: &Vec<u8>, ) -> Result<Option<V>, E>
where V: ScryptoDecode,

Removes an entry from a collection. If an invalid collection index or key is passed an error is returned, otherwise the value of the entry is returned.
Source§

impl<'a, Y: SystemBasedKernelApi> SystemActorSortedIndexApi<RuntimeError> for SystemService<'a, Y>

Source§

fn actor_sorted_index_insert( &mut self, object_handle: ActorStateHandle, collection_index: CollectionIndex, sorted_key: SortedKey, buffer: Vec<u8>, ) -> Result<(), RuntimeError>

Inserts an entry into a sorted index
Source§

fn actor_sorted_index_remove( &mut self, object_handle: ActorStateHandle, collection_index: CollectionIndex, sorted_key: &SortedKey, ) -> Result<Option<Vec<u8>>, RuntimeError>

Removes an entry from a sorted index
Source§

fn actor_sorted_index_scan( &mut self, object_handle: ActorStateHandle, collection_index: CollectionIndex, limit: u32, ) -> Result<Vec<(SortedKey, Vec<u8>)>, RuntimeError>

Scans the first elements of count from a sorted index
Source§

fn actor_sorted_index_insert_typed<V>( &mut self, object_handle: u32, collection_index: u8, sorted_key: ([u8; 2], Vec<u8>), value: V, ) -> Result<(), E>
where V: ScryptoEncode,

Inserts an entry into a sorted index
Source§

fn actor_sorted_index_remove_typed<V>( &mut self, object_handle: u32, collection_index: u8, sorted_key: &([u8; 2], Vec<u8>), ) -> Result<Option<V>, E>
where V: ScryptoDecode,

Removes an entry from a sorted index
Source§

fn actor_sorted_index_scan_typed<K, V>( &mut self, object_handle: u32, collection_index: u8, count: u32, ) -> Result<Vec<(K, V)>, E>

Scans the first elements of count from a sorted index
Source§

impl<'a, Y: SystemBasedKernelApi> SystemBlueprintApi<RuntimeError> for SystemService<'a, Y>

Source§

fn call_function( &mut self, package_address: PackageAddress, blueprint_name: &str, function_name: &str, args: Vec<u8>, ) -> Result<Vec<u8>, RuntimeError>

Calls a function on a blueprint
Source§

fn resolve_blueprint_type( &mut self, blueprint_type_id: &BlueprintTypeIdentifier, ) -> Result<(Rc<VersionedScryptoSchema>, ScopedTypeId), RuntimeError>

Retrieves the schema of type under a blueprint
Source§

impl<'a, Y: SystemBasedKernelApi> SystemCostingApi<RuntimeError> for SystemService<'a, Y>

Source§

fn consume_cost_units( &mut self, costing_entry: ClientCostingEntry<'_>, ) -> Result<(), RuntimeError>

Consume an amount of cost units.
Source§

fn start_lock_fee( &mut self, amount: Decimal, contingent: bool, ) -> Result<bool, RuntimeError>

Check if costing is enabled.
Source§

fn lock_fee(&mut self, locked_fee: LiquidFungibleResource, contingent: bool)

Add cost units to the reserve. This should never fail.
Source§

fn execution_cost_unit_limit(&mut self) -> Result<u32, RuntimeError>

Retrieve the cost unit limit for the transaction
Source§

fn execution_cost_unit_price(&mut self) -> Result<Decimal, RuntimeError>

Retrieve the cost unit price in XRD
Source§

fn finalization_cost_unit_limit(&mut self) -> Result<u32, RuntimeError>

Retrieve the finalization cost unit limit
Source§

fn finalization_cost_unit_price(&mut self) -> Result<Decimal, RuntimeError>

Retrieve the finalization cost unit price in XRD
Source§

fn usd_price(&mut self) -> Result<Decimal, RuntimeError>

Retrieve the usd price of XRD
Source§

fn max_per_function_royalty_in_xrd(&mut self) -> Result<Decimal, RuntimeError>

Retrieve the maximum allowable royalty per function
Source§

fn tip_percentage_truncated(&mut self) -> Result<u32, RuntimeError>

Retrieve the tip percentage of the transaction
Source§

fn fee_balance(&mut self) -> Result<Decimal, RuntimeError>

Retrieve the current fee balance in XRD
Source§

impl<'a, Y: SystemBasedKernelApi> SystemExecutionTraceApi<RuntimeError> for SystemService<'a, Y>

Source§

fn update_instruction_index( &mut self, new_index: usize, ) -> Result<(), RuntimeError>

Source§

impl<'a, Y: SystemBasedKernelApi> SystemFieldApi<RuntimeError> for SystemService<'a, Y>

Source§

fn field_read(&mut self, handle: FieldHandle) -> Result<Vec<u8>, RuntimeError>

Retrieve the value of a field
Source§

fn field_write( &mut self, handle: FieldHandle, buffer: Vec<u8>, ) -> Result<(), RuntimeError>

Write a value to a field
Source§

fn field_lock(&mut self, handle: FieldHandle) -> Result<(), RuntimeError>

Lock a field such that it becomes immutable
Source§

fn field_close(&mut self, handle: FieldHandle) -> Result<(), RuntimeError>

Close a field handle so that it is no longer usable
Source§

fn field_read_typed<S>(&mut self, handle: u32) -> Result<S, E>
where S: ScryptoDecode,

Retrieve the value of a field
Source§

fn field_write_typed<S>(&mut self, handle: u32, substate: &S) -> Result<(), E>
where S: ScryptoEncode,

Write a value to a field
Source§

impl<'a, Y: SystemBasedKernelApi> SystemKeyValueEntryApi<RuntimeError> for SystemService<'a, Y>

Source§

fn key_value_entry_get( &mut self, handle: KeyValueEntryHandle, ) -> Result<Vec<u8>, RuntimeError>

Reads the value of a key value entry
Source§

fn key_value_entry_lock( &mut self, handle: KeyValueEntryHandle, ) -> Result<(), RuntimeError>

Lock the value of a key value entry making the value immutable
Source§

fn key_value_entry_remove( &mut self, handle: KeyValueEntryHandle, ) -> Result<Vec<u8>, RuntimeError>

Remove the value of a key value entry
Source§

fn key_value_entry_set( &mut self, handle: KeyValueEntryHandle, buffer: Vec<u8>, ) -> Result<(), RuntimeError>

Set the value of a key value entry
Source§

fn key_value_entry_close( &mut self, handle: KeyValueEntryHandle, ) -> Result<(), RuntimeError>

Close the handle into the key value entry rendering it unusable after close
Source§

fn key_value_entry_get_typed<S>(&mut self, handle: u32) -> Result<Option<S>, E>
where S: ScryptoDecode,

Reads the value of a key value entry and decodes it into a specific type
Source§

fn key_value_entry_set_typed<S>( &mut self, handle: u32, value: S, ) -> Result<(), E>
where S: ScryptoEncode,

Set the value of a key value entry
Source§

impl<'a, Y: SystemBasedKernelApi> SystemKeyValueStoreApi<RuntimeError> for SystemService<'a, Y>

Source§

fn key_value_store_new( &mut self, data_schema: KeyValueStoreDataSchema, ) -> Result<NodeId, RuntimeError>

Creates a new key value store with a given schema
Source§

fn key_value_store_open_entry( &mut self, node_id: &NodeId, key: &Vec<u8>, flags: LockFlags, ) -> Result<KeyValueEntryHandle, RuntimeError>

Open a key value store entry for reading/writing
Source§

fn key_value_store_remove_entry( &mut self, node_id: &NodeId, key: &Vec<u8>, ) -> Result<Vec<u8>, RuntimeError>

Removes an entry from a key value store
Source§

impl<'a, Y: SystemBasedKernelApi> SystemObjectApi<RuntimeError> for SystemService<'a, Y>

Source§

fn new_object( &mut self, blueprint_ident: &str, features: Vec<&str>, generic_args: GenericArgs, fields: IndexMap<u8, FieldValue>, kv_entries: IndexMap<u8, IndexMap<Vec<u8>, KVEntry>>, ) -> Result<NodeId, RuntimeError>

Creates a new object of a given blueprint type
Source§

fn allocate_global_address( &mut self, blueprint_id: BlueprintId, ) -> Result<(GlobalAddressReservation, GlobalAddress), RuntimeError>

Allocates a global address, for a future globalization.
Source§

fn allocate_virtual_global_address( &mut self, blueprint_id: BlueprintId, global_address: GlobalAddress, ) -> Result<GlobalAddressReservation, RuntimeError>

Allocates a specific virtual global address
Source§

fn globalize( &mut self, node_id: NodeId, modules: IndexMap<AttachedModuleId, NodeId>, address_reservation: Option<GlobalAddressReservation>, ) -> Result<GlobalAddress, RuntimeError>

Moves an object currently in the heap into the global space making it accessible to all with the provided global address.
Source§

fn globalize_with_address_and_create_inner_object_and_emit_event( &mut self, node_id: NodeId, modules: IndexMap<AttachedModuleId, NodeId>, address_reservation: GlobalAddressReservation, inner_object_blueprint: &str, inner_object_fields: IndexMap<u8, FieldValue>, event_name: &str, event_data: Vec<u8>, ) -> Result<(GlobalAddress, NodeId), RuntimeError>

Globalizes with a new inner object and emits an event
Source§

fn call_method( &mut self, receiver: &NodeId, method_name: &str, args: Vec<u8>, ) -> Result<Vec<u8>, RuntimeError>

Calls a method on an object
Source§

fn call_direct_access_method( &mut self, receiver: &NodeId, method_name: &str, args: Vec<u8>, ) -> Result<Vec<u8>, RuntimeError>

Calls a direct access method on an object
Source§

fn call_module_method( &mut self, receiver: &NodeId, module_id: AttachedModuleId, method_name: &str, args: Vec<u8>, ) -> Result<Vec<u8>, RuntimeError>

Calls a method on an object module
Source§

fn get_blueprint_id( &mut self, node_id: &NodeId, ) -> Result<BlueprintId, RuntimeError>

Get the blueprint id of a visible object
Source§

fn get_outer_object( &mut self, node_id: &NodeId, ) -> Result<GlobalAddress, RuntimeError>

Get the outer object of a visible object
Source§

fn get_reservation_address( &mut self, node_id: &NodeId, ) -> Result<GlobalAddress, RuntimeError>

Retrieve the global address of a given address reservation
Source§

fn drop_object( &mut self, node_id: &NodeId, ) -> Result<Vec<Vec<u8>>, RuntimeError>

Drops an owned object, returns the fields of the object
Source§

fn new_simple_object( &mut self, blueprint_ident: &str, fields: IndexMap<u8, FieldValue>, ) -> Result<NodeId, E>

Creates a new simple blueprint object of a given blueprint type
Source§

impl<'a, Y: SystemBasedKernelApi> SystemTransactionRuntimeApi<RuntimeError> for SystemService<'a, Y>

Source§

fn get_transaction_hash(&mut self) -> Result<Hash, RuntimeError>

Retrieve the hash of the current transaction which is running.
Source§

fn generate_ruid(&mut self) -> Result<[u8; 32], RuntimeError>

Generate a unique id
Source§

fn bech32_encode_address( &mut self, address: GlobalAddress, ) -> Result<String, RuntimeError>

Encode an address into Bech32. The HRP part is dependent on the network which is running.
Source§

fn emit_log( &mut self, level: Level, message: String, ) -> Result<(), RuntimeError>

Emit a log message which will be available in the transaction receipt
Source§

fn panic(&mut self, message: String) -> Result<(), RuntimeError>

End the transaction immediately with a given message to be included in the transaction receipt
Source§

impl<'a, 'e, Y: SystemApi<RuntimeError>> TransformHandler<RuntimeError> for IntentProcessorObjectsWithApi<'a, 'e, Y>

Source§

impl Eq for RuntimeError

Source§

impl StructuralPartialEq for RuntimeError

Source§

impl<'a, Y: SystemBasedKernelApi> SystemApi<RuntimeError> for SystemService<'a, Y>

Source§

impl SystemApiError for RuntimeError

Auto Trait Implementations§

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<U> As for U

Source§

fn as_<T>(self) -> T
where 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 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T, U> ContextualTryInto<U> for T
where U: ContextualTryFrom<T>,

Source§

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

Source§

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

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

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

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

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

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

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

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

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

Source§

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

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

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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<X, Y> LabelledResolve<Y> for X
where Y: LabelledResolveFrom<X>,

Source§

fn labelled_resolve( self, resolver: &impl LabelResolver<<Y as LabelledResolvable>::ResolverOutput>, ) -> Y

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<X, Y> Resolve<Y> for X
where Y: ResolveFrom<X>,

Source§

fn resolve(self) -> Y

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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

Source§

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

Source§

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<T> ScryptoCategorize for T

Source§

impl<T> ScryptoDecode for T

Source§

impl<T> ScryptoDescribe for T

Source§

impl<T> ScryptoEncode for T

Source§

impl<T> ScryptoSbor for T

Source§

impl<T> ScryptoSborEnum for T

Source§

impl<X, T> VecDecode<X> for T
where X: CustomValueKind, T: for<'a> Decode<X, VecDecoder<'a, X>>,

Source§

impl<X, T> VecEncode<X> for T
where X: CustomValueKind, T: for<'a> Encode<X, VecEncoder<'a, X>> + ?Sized,