pub struct Runtime;

Implementations§

Trait Implementations§

Get current account nonce of given AccountId.
Returns the slot duration for Aura. Read more
Get the benchmark metadata available for this runtime. Read more
Dispatch the given benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Return the components and their ranges which should be tested in this benchmark.
Set up the storage, and prepare a closure to run the benchmark.
Apply the given extrinsic. Read more
Finish the current block.
Generate inherent extrinsics. The inherent data will vary from chain to chain.
Check that the inherents are valid. The inherent data will vary from chain to chain.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Collect information about a collation. Read more

The type for recording an account’s balance.

The ubiquitous event type.

The maximum number of locks that should exist on an account. Not strictly enforced, but used for weight estimation. Read more
Handler for the unbalanced reduction when removing a dust account.
The minimum amount required to keep an account open.
The means of storing the balances of an account.
Weight information for extrinsics in this pallet.
The maximum number of named reserves that can exist on an account.
The id type for named reserves.
The treasury’s pallet id, used for deriving its sovereign account ID.
The staking balance.
Origin from which approvals must come.
Origin from which rejections must come.
The overarching event type.
Handler for the unbalanced decrease when slashing for a rejected proposal or bounty.
Fraction of a proposal’s value that should be bonded in order to place the proposal. An accepted proposal gets these back. A rejected proposal does not. Read more
Minimum amount of funds that should be placed in a deposit for making a proposal.
Maximum amount of funds that should be placed in a deposit for making a proposal.
Period between successive spends.
Percentage of spare funds (if any) that are burnt per spend period.
Handler for the unbalanced decrease when treasury funds are burned.
Weight information for extrinsics in this pallet.
Runtime hooks to external pallet using treasury to compute spend funds.
The maximum number of approvals that can wait in the spending queue. Read more
The origin required for approving spends from the treasury outside of the proposal process. The Success value is the maximum amount that this origin is allowed to spend at a time. Read more
The overarching event type.
The amount held on deposit per byte within the tip report reason or bounty description.
Maximum acceptable reason length. Read more
Origin from which tippers must come. Read more
The period for which a tip remains open after is has achieved threshold tippers.
The percent of the final tip which goes to the original reporter of the tip.
The amount held on deposit for placing a tip report.
Weight information for extrinsics in this pallet.
The overarching event type.
Identifier for the collection of item.
The type used to identify a unique item within a collection.
The currency mechanism, used for paying for reserves.
The origin which may forcibly create or destroy an item or otherwise alter privileged attributes. Read more
Standard collection creation is only allowed if the origin attempting it and the collection are in this set. Read more
Locker trait to enable Locking mechanism downstream.
The basic amount of funds that must be reserved for collection.
The basic amount of funds that must be reserved for an item.
The basic amount of funds that must be reserved when adding metadata to your item.
The basic amount of funds that must be reserved when adding an attribute to an item.
The additional funds that must be reserved for the number of bytes store in metadata, either “normal” metadata or attribute metadata. Read more
The maximum length of data stored on-chain.
The maximum length of an attribute key.
The maximum length of an attribute value.
Weight information for extrinsics in this pallet.
A set of helper functions for benchmarking.
The outer origin type.
The outer call dispatch type.
The outer event type.
The time-out for council motions.
Maximum number of proposals allowed to be active in parallel.
The maximum number of members supported by the pallet. Used for weight estimation. Read more
Default vote strategy of this collective.
Weight information for extrinsics in this pallet.
Asset type.
Currency for transfers.
Pallet id.
Minimum total rewards to distribute from global farm during liquidity mining.
Minimum number of periods to run liquidity mining program.
The block number provider
Id used to identify amm pool in liquidity mining pallet.
Maximum number of yield farms same LP shares can be re/deposited into. This value always MUST BE >= 1. Read more
Max number of yield farms can exist in global farm. This includes all farms in the storage(active, stopped, terminated). Read more
Asset Registry - used to check if asset is correctly registered in asset registry and provides information about existential deposit of the asset. Read more
Account whitelist manager to exclude pool accounts from dusting mechanism.
The outer origin type.
The outer call dispatch type.
The outer event type.
The time-out for council motions.
Maximum number of proposals allowed to be active in parallel.
The maximum number of members supported by the pallet. Used for weight estimation. Read more
Default vote strategy of this collective.
Weight information for extrinsics in this pallet.
The overarching event type.
Something to execute an XCM message. We need this to service the XCMoXCMP queue.
Information on the avaialble XCMP channels.
Means of converting an Xcm into a VersionedXcm.
The origin that is allowed to execute overweight messages.
The origin that is allowed to resume or suspend the XCMP queue.
The conversion function used to attempt to convert an XCM MultiLocation origin to a superuser origin. Read more
The weight information of this pallet.
Because this pallet emits events, it depends on the runtime’s definition of an event.
The origin which can add/remove accepted currencies
Multi Currency
Spot price provider
Weight information for the extrinsics.
Should fee be paid for setting a currency
Convert a weight value into a deductible fee based on the currency type.
Native Asset
Account where fees are deposited
The overarching event type.
The overarching call type.
The currency mechanism.
A kind of proxy; specified with the proxy and passed in to the IsProxyable fitler. The instance filter determines whether a given call may be proxied under this type. Read more
The base amount of currency needed to reserve for creating a proxy. Read more
The amount of currency needed per proxy added. Read more
The maximum amount of proxies allowed for a single account.
Weight information for extrinsics in this pallet.
The maximum amount of time-delayed announcements that are allowed to be pending.
The type of hash used for hashing the call.
The base amount of currency needed to reserve for creating an announcement. Read more
The amount of currency needed per announcement made. Read more

Tokens Configurations

The balance type
The amount type, should be signed version of Balance
The currency ID type
Weight information for extrinsics in this module.
The minimum amount required to keep an account. It’s deprecated to config 0 as ED for any currency_id, zero ED will retain account even if its total is zero. Since accounts of orml_tokens are also used as providers of System::AccountInfo, zero ED may cause some problems. Read more
Handler to burn or transfer account’s dust
The maximum number of named reserves that can exist on an account.
The id type for named reserves.
Handler for when an account was created
Handler for when an account was created
Balance type
The amount type, should be signed version of Balance
Asset type
Currency for transfers
The minimum amount required to keep an account.
Reward amount
Native Asset Id
The origin which can manage whiltelist.
Weight information for extrinsics in this module.
The origin which can work with asset-registry.
Asset type
Balance type
Asset location type
The maximum length of a name or symbol stored on-chain.
Native Asset Id
Weight information for the extrinsics
Registry support
Share token support
Multi currency for transfer of currencies
Native Asset Id
Weight information for the extrinsics.
Trading fee rate
Minimum trading limit
Minimum pool liquidity
Max fraction of pool to sell in single transaction
Max fraction of pool to buy in single transaction
Called to ensure that pool can be created
AMM handlers
Discounted fee
Account whitelist manager to exclude pool accounts from dusting mechanism.
Multi currency for transfer of currencies
Universal locked balance getter for tracking of fee collector balance
The origin which can create a new pool
Function for calculation of LBP weights
Mapping of asset pairs to unique pool identities
Minimum trading limit, sole purpose of this is to keep the math working
Minimum pool liquidity, sole purpose of this is to keep the math working
Max fraction of pool to sell in single transaction
Max fraction of pool to buy in single transaction
Weight information for the extrinsics
The block number provider
The overarching event type.
Something which can be notified when the validation data is set.
Returns the parachain ID we are running with.
The place where outbound XCMP messages come from. This is queried in finalize_block.
The message handler that will be invoked when messages are received via DMP.
The weight we reserve at the beginning of the block for processing DMP messages.
The message handler that will be invoked when messages are received via XCMP. Read more
The weight we reserve at the beginning of the block for processing XCMP messages.
Something that can check the associated relay parent block number.
The identifier type for an authority.
The maximum number of authorities that the pallet can hold.
A way to check whether a given validator is disabled and should not be authoring blocks. Blocks authored by a disabled validator will lead to a panic as part of this module’s initialization. Read more
The overarching event type.
Origin which is allowed to execute overweight messages.

A straight majority of the council can decide what their next motion is.

A majority can have the next scheduled referendum be a straight majority-carries vote

A unanimous council can have the next scheduled referendum be a straight default-carries (NTB) vote.

Two thirds of the technical committee can have an ExternalMajority/ExternalDefault vote be tabled immediately and with a shorter voting/enactment period.

Currency type for this pallet.
The period between a proposal being approved and enacted. Read more
How often (in blocks) new public referenda are launched.
How often (in blocks) to check for new votes.
The minimum amount to be used as a deposit for a public referendum proposal.
Origin from which the next majority-carries (or more permissive) referendum may be tabled to vote immediately and asynchronously in a similar manner to the emergency origin. It retains its threshold method. Read more
Indicator for whether an emergency origin is even allowed to happen. Some chains may want to set this permanently to false, others may want to condition it on things such as an upgrade having happened recently. Read more
Minimum voting period allowed for a fast-track referendum.
Origin from which any referendum may be cancelled in an emergency.
Origin from which a proposal may be cancelled and its backers slashed.
Origin from which proposals may be blacklisted.
Origin for anyone able to veto proposals. Read more
Period in blocks where an external proposal may not be re-submitted after being vetoed.
The amount of balance that must be deposited per byte of preimage stored.
An origin that can provide a preimage using operational extrinsics.
Handler for the unbalanced reduction when slashing a preimage deposit.
The Scheduler.
Overarching type of all pallets origins.
The maximum number of votes for an account. Read more
Weight information for extrinsics in this pallet.
The maximum number of public proposals that can exist at any time.
The minimum period of vote locking. Read more
Identifier for the elections-phragmen pallet’s lock
The currency that people are electing with.
What to do when the members change.
What to do with genesis members
Convert a balance into a number used for election calculation. This must fit into a u64 but is allowed to be sensibly lossy. Read more
How much should be locked up in order to submit one’s candidacy.
Base deposit associated with voting. Read more
The amount of bond that need to be locked for each vote (32 bytes).
Handler for the unbalanced reduction when a candidate has lost (and is not a runner-up)
Handler for the unbalanced reduction when a member has been kicked.
Number of members to elect.
Number of runners_up to keep.
How long each seat is kept. This defines the next block number at which an election round will happen. If set to zero, no elections are ever triggered and the module will be in passive mode. Read more
The maximum number of candidates in a phragmen election. Read more
The maximum number of voters to allow in a phragmen election. Read more
Weight information for extrinsics in this pallet.
The overarching event type.
The aggregated origin which the dispatch will take.
The caller origin, overarching type of all pallets origins.
The aggregated call type.
The maximum weight that may be scheduled per block for any dispatchables of less priority than schedule::HARD_DEADLINE. Read more
Required origin to schedule or cancel calls.
The maximum number of scheduled calls in the queue for a single block. Not strictly enforced, but used for weight estimation. Read more
Weight information for extrinsics in this pallet.
Compare the privileges of origins. Read more
The preimage provider with which we look up call hashes to get the call.
If Some then the number of blocks to postpone execution for when the item is delayed.
The overarching event type.
The overarching call type.
Weight information for extrinsics in this pallet.
The caller origin, overarching type of all pallets origins.
Find the author of a block.
The number of blocks back we should accept uncles. This means that we will deal with uncle-parents that are UncleGenerations + 1 before now. Read more
A filter for uncles within a block. This is for implementing further constraints on what uncles can be included, other than their ancestry. Read more
An event handler for authored blocks.
Overarching event type.
The currency mechanism.
Origin that can dictate updating parameters of this pallet.
Account Identifier from which the internal Pot is generated.
Maximum number of candidates that we should have. This is enforced in code. Read more
Minimum number of candidates that we should have. This is used for disaster recovery. Read more
Maximum number of invulnerables. This is enforced in code.
A stable ID for a validator.
A conversion from account ID to validator ID. Read more
Validate a user is registered
The weight information of this pallet.
The overarching event type.
A stable ID for a validator.
A conversion from account ID to validator ID. Read more
Indicator for when to end the session.
Something that can predict the next session rotation. This should typically come from the same logical unit that provides ShouldEndSession, yet, it gives a best effort estimate. It is helpful to implement EstimateNextNewSession. Read more
Handler for managing new session.
Handler when a session has changed.
The keys.
Weight information for extrinsics in this pallet.
The balance type.
Currency Id.
Convert T::CurrencyId to MultiLocation.
Convert T::AccountId to MultiLocation.
Self chain location.
XCM executor.
Means of measuring the weight consumed by an XCM message locally.
Base XCM weight. Read more
Means of inverting a location.
The maximum number of distinct assets allowed to be transferred in a single helper extrinsic. Read more
MultiLocation filter
The way to retreave the reserve of a MultiAsset. This can be configured to accept absolute or relative paths for self tokens Read more
Minimum xcm execution fee paid on destination chain.
The minimum amount transferred to call vested_transfer.
Required origin for vested transfer.
Weight information for extrinsics in this module.
The maximum vesting schedules
Provider of relay chain block number
Currency for transfers.
The origin account that can create new liquidity mining program.
Pallet id.
NFT collection id for liq. mining deposit nfts. Has to be within the range of reserved NFT class IDs.
AMM helper functions.
Weight information for extrinsic in this module.
Non fungible handling
Liquidity mining handler for managing liquidity mining functionalities
Account whitelist manager to exclude pool accounts from dusting mechanism.
The Weight information for this pallet.
The overarching event type.
Currency type for this pallet.
An origin that can request a preimage be placed on-chain without a deposit or fee, or manage existing preimages. Read more
Max size allowed for a preimage.
The base deposit for placing a preimage on chain.
The per-byte deposit for placing a preimage on chain.
The overarching event type.
The currency trait.
The amount held on deposit for a registered identity
The amount held on deposit per additional field for a registered identity.
The amount held on deposit for a registered subaccount. This should account for the fact that one storage item’s value will increase by the size of an account ID, and there will be another trie item whose value is the size of an account ID plus 32 bytes. Read more
The maximum number of sub-accounts allowed per identified account.
Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O required to access an identity, but can be pretty high. Read more
Maxmimum number of registrars allowed in the system. Needed to bound the complexity of, e.g., updating judgements. Read more
What to do with slashed funds.
The origin which may forcibly set or remove a name. Root can always do this.
The origin which may add or remove registrars. Root can always do this.
Weight information for extrinsics in this pallet.
The overarching event type.
The overarching call type.
The currency mechanism.
The base amount of currency needed to reserve for creating a multisig execution or to store a dispatch call for later. Read more
The amount of currency needed per unit threshold when creating a multisig execution. Read more
The maximum amount of signatories allowed in the multisig.
Weight information for extrinsics in this pallet.
The origin which may set filter.
Weight information for the extrinsics in this module.
Asset id type
Balance type
Max limit for the number of trades within a route
Currency for checking balances
Handlers for AMM pools to calculate and execute trades
Weight information for the extrinsics.
The overarching event type.
Required origin for sending XCM messages. If successful, it resolves to MultiLocation which exists as an interior location within this chain’s XCM context. Read more
The type used to actually dispatch an XCM to its destination.
Required origin for executing XCM messages, including the teleport functionality. If successful, then it resolves to MultiLocation which exists as an interior location within this chain’s XCM context. Read more
Our XCM filter which messages to be executed using XcmExecutor must pass.
Something to execute an XCM message.
Our XCM filter which messages to be teleported using the dedicated extrinsic must pass.
Our XCM filter which messages to be reserve-transferred using the dedicated extrinsic must pass.
Means of measuring the weight consumed by an XCM message locally.
Means of inverting a location.
The outer Origin type.
The outer Call type.
The latest supported version that we advertise. Generally just set it to pallet_xcm::CurrentXcmVersion. Read more

The basic call filter to use in dispatchable.

The ubiquitous origin type.

The aggregated dispatch type that is available for extrinsics.

The index type for storing how many extrinsics an account has signed.

The index type for blocks.

The type for hashing blocks and tries.

The hashing algorithm used.

The identifier used to distinguish between accounts.

The lookup mechanism to get account ID from whatever is passed in dispatchers.

The header type.

The ubiquitous event type.

Maximum number of block number to block hash mappings to keep (oldest pruned first).

The weight of database operations that the runtime can invoke.

The weight of the overhead invoked on the block import process, independent of the extrinsics included in that block. Version of the runtime.

Converts a module to the index of the module in construct_runtime!.

This type is being generated by construct_runtime!.

The data to be stored in an account.

What to do if a new account is created.

What to do if an account is fully reaped from the system.

Weight information for the extrinsics of this pallet.

Block & extrinsics weights: base values and limits.
The maximum length of a block (in bytes).
The designated SS58 prefix of this chain. Read more
What to do if the runtime wants to change the code to something new. Read more
The maximum number of consumers allowed on a single account.

A timestamp: milliseconds since the unix epoch.

Something which can be notified when the timestamp is set. Set this to () if not needed. Read more
The minimum period between blocks. Beware that this is different to the expected period that the block production apparatus provides. Your chosen consensus system will generally work with this to determine a sensible block time. e.g. For Aura, it will be double this period on default settings. Read more
Weight information for extrinsics in this pallet.
The overarching event type.
Handler for withdrawing, refunding and depositing the transaction fee. Transaction fees are withdrawn before the transaction is executed. After the transaction was executed the transaction weight can be adjusted, depending on the used resources by the transaction. If the transaction weight is lower than expected, parts of the transaction fee might be refunded. In the end the fees can be deposited. Read more
A fee mulitplier for Operational extrinsics to compute “virtual tip” to boost their priority Read more
Convert a weight value into a deductible fee based on the currency type.
Convert a length value into a deductible fee based on the currency type.
Update the multiplier of the next block, based on the previous block’s weight.
Returns the version of the runtime.
Execute the given block.
Initialize a block with the given header.
Formats the value using the given formatter. Read more
Ensure the position of inherent is correct, i.e. they are before non-inherents. Read more
The NodeBlock type.
Returns the metadata of a runtime.
Starts the off-chain task for given block header.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Decode the given public session keys. Read more
Generate a set of session keys with optionally using the given seed. The keys should be stored within the keystore exposed via runtime externalities. Read more
Validate the transaction. Read more
dry-run runtime upgrades, returning the total weight consumed. Read more
Execute the given block, but don’t check that its state root matches that of yours. Read more
The type identifying for which type info is provided. Read more
Returns the static type identifier for Self.
The call to validate
Validate the call right before dispatch. Read more
Return the validity of the call Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Casts the value.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.
Convert from a value of T into an equivalent instance of Option<Self>. Read more
Consume self to return Some equivalent value of Option<T>. Read more
Converts self into T using Into<T>. Read more
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. Read more
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more
Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more
Compare self to key and return true if they are equal.
Causes self to use its Binary implementation when Debug-formatted. Read more
Causes self to use its Display implementation when Debug-formatted. Read more
Causes self to use its LowerExp implementation when Debug-formatted. Read more
Causes self to use its LowerHex implementation when Debug-formatted. Read more
Causes self to use its Octal implementation when Debug-formatted. Read more
Causes self to use its Pointer implementation when Debug-formatted. Read more
Causes self to use its UpperExp implementation when Debug-formatted. Read more
Causes self to use its UpperHex implementation when Debug-formatted. Read more
Formats each item in a sequence. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Cast reference.
Cast reference.
Cast mutable reference.
Cast mutable reference.

Get a reference to the inner from the outer.

Get a mutable reference to the inner from the outer.

Performs the conversion.
Performs the conversion.
Casts the value.
Casts the value.
Pipes by value. This is generally the method you want to use. Read more
Borrows self and passes that borrow into the pipe function. Read more
Mutably borrows self and passes that borrow into the pipe function. Read more
Borrows self, then passes self.borrow() into the pipe function. Read more
Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Borrows self, then passes self.as_ref() into the pipe function.
Mutably borrows self, then passes self.as_mut() into the pipe function. Read more
Borrows self, then passes self.deref() into the pipe function.
Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
Convert from a value of T into an equivalent instance of Self. Read more
Consume self to return an equivalent value of T. Read more
Casts the value.
Casts the value.
Performance hack: Clone doesn’t get inlined for Copy types in debug mode, so make it inline anyway.
Tests if Self the same as the type T Read more
The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
Immutable access to a value. Read more
Mutable access to a value. Read more
Immutable access to the Borrow<B> of a value. Read more
Mutable access to the BorrowMut<B> of a value. Read more
Immutable access to the AsRef<R> view of a value. Read more
Mutable access to the AsMut<R> view of a value. Read more
Immutable access to the Deref::Target of a value. Read more
Mutable access to the Deref::Target of a value. Read more
Calls .tap() only in debug builds, and is erased in release builds.
Calls .tap_mut() only in debug builds, and is erased in release builds. Read more
Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more
Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more
Calls .tap_ref() only in debug builds, and is erased in release builds. Read more
Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more
Calls .tap_deref() only in debug builds, and is erased in release builds. Read more
Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Attempts to convert self into T using TryInto<T>. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The counterpart to unchecked_from.
Consume self to return an equivalent value of T.
Casts the value.
Casts the value.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Casts the value.
Casts the value.