Struct parachain_runtime_mock::ParachainRuntime
source · pub struct ParachainRuntime;
Implementations§
source§impl ParachainRuntime
impl ParachainRuntime
pub fn metadata() -> RuntimeMetadataPrefixed
Trait Implementations§
source§impl Clone for ParachainRuntime
impl Clone for ParachainRuntime
source§fn clone(&self) -> ParachainRuntime
fn clone(&self) -> ParachainRuntime
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 Config<()> for ParachainRuntime
impl Config<()> for ParachainRuntime
§type DustRemoval = ()
type DustRemoval = ()
Handler for the unbalanced reduction when removing a dust account.
§type ExistentialDeposit = ExistentialDeposit
type ExistentialDeposit = ExistentialDeposit
The minimum amount required to keep an account open.
§type AccountStore = Pallet<ParachainRuntime>
type AccountStore = Pallet<ParachainRuntime>
The means of storing the balances of an account.
§type MaxLocks = ()
type MaxLocks = ()
The maximum number of locks that should exist on an account.
Not strictly enforced, but used for weight estimation. Read more
§type WeightInfo = ()
type WeightInfo = ()
Weight information for extrinsics in this pallet.
§type MaxReserves = MaxReserves
type MaxReserves = MaxReserves
The maximum number of named reserves that can exist on an account.
§type ReserveIdentifier = ()
type ReserveIdentifier = ()
The id type for named reserves.
source§impl Config for ParachainRuntime
impl Config for ParachainRuntime
§type BaseCallFilter = Everything
type BaseCallFilter = Everything
The basic call filter to use in Origin. All origins are built with this filter as base,
except Root. Read more
§type BlockWeights = ()
type BlockWeights = ()
Block & extrinsics weights: base values and limits.
§type BlockLength = BlockLength
type BlockLength = BlockLength
The maximum length of a block (in bytes).
§type Index = u64
type Index = u64
Account index (aka nonce) type. This stores the number of previous transactions
associated with a sender account. Read more
§type BlockNumber = u64
type BlockNumber = u64
The block number type used by the runtime.
§type Hashing = BlakeTwo256
type Hashing = BlakeTwo256
The hashing system (algorithm) being used in the runtime (e.g. Blake2).
§type AccountId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
type AccountId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
The user account identifier type for the runtime.
§type Lookup = IdentityLookup<<ParachainRuntime as Config>::AccountId>
type Lookup = IdentityLookup<<ParachainRuntime as Config>::AccountId>
Converting trait to take a source type and convert to
AccountId
. Read more§type Header = Header<u64, BlakeTwo256>
type Header = Header<u64, BlakeTwo256>
The block header.
§type BlockHashCount = BlockHashCount
type BlockHashCount = BlockHashCount
Maximum number of block number to block hash mappings to keep (oldest pruned first).
§type PalletInfo = PalletInfo
type PalletInfo = PalletInfo
Provides information about the pallet setup in the runtime. Read more
§type AccountData = AccountData<u128>
type AccountData = AccountData<u128>
Data to be associated with an account (other than nonce/transaction counter, which this
pallet does regardless). Read more
§type OnNewAccount = ()
type OnNewAccount = ()
Handler for when a new account has just been created.
§type OnKilledAccount = ()
type OnKilledAccount = ()
A function that is invoked when an account has been determined to be dead. Read more
type SystemWeightInfo = ()
§type SS58Prefix = ()
type SS58Prefix = ()
The designated SS58 prefix of this chain. Read more
§type OnSetCode = ParachainSetCode<ParachainRuntime>
type OnSetCode = ParachainSetCode<ParachainRuntime>
What to do if the runtime wants to change the code to something new. Read more
§type MaxConsumers = ConstU32<16>
type MaxConsumers = ConstU32<16>
The maximum number of consumers allowed on a single account.
source§impl Config for ParachainRuntime
impl Config for ParachainRuntime
§type OnSystemEvent = ()
type OnSystemEvent = ()
Something which can be notified when the validation data is set.
§type SelfParaId = Pallet<ParachainRuntime>
type SelfParaId = Pallet<ParachainRuntime>
Returns the parachain ID we are running with.
§type DmpMessageHandler = Pallet<ParachainRuntime>
type DmpMessageHandler = Pallet<ParachainRuntime>
The message handler that will be invoked when messages are received via DMP.
§type ReservedDmpWeight = ReservedDmpWeight
type ReservedDmpWeight = ReservedDmpWeight
The weight we reserve at the beginning of the block for processing DMP messages.
§type OutboundXcmpMessageSource = Pallet<ParachainRuntime>
type OutboundXcmpMessageSource = Pallet<ParachainRuntime>
The place where outbound XCMP messages come from. This is queried in
finalize_block
.§type XcmpMessageHandler = Pallet<ParachainRuntime>
type XcmpMessageHandler = Pallet<ParachainRuntime>
The message handler that will be invoked when messages are received via XCMP. Read more
§type ReservedXcmpWeight = ReservedXcmpWeight
type ReservedXcmpWeight = ReservedXcmpWeight
The weight we reserve at the beginning of the block for processing XCMP messages.
§type CheckAssociatedRelayNumber = RelayNumberStrictlyIncreases
type CheckAssociatedRelayNumber = RelayNumberStrictlyIncreases
Something that can check the associated relay parent block number.
source§impl Config for ParachainRuntime
impl Config for ParachainRuntime
type Event = Event
type MultiCurrency = Pallet<ParachainRuntime>
type NativeCurrency = BasicCurrencyAdapter<ParachainRuntime, Pallet<ParachainRuntime, ()>, i128, u32>
type GetNativeCurrencyId = ParachainNativeCurrencyId
§type WeightInfo = ()
type WeightInfo = ()
Weight information for extrinsics in this module.
source§impl Config for ParachainRuntime
impl Config for ParachainRuntime
§type OnChargeTransaction = TransferFees<Pallet<ParachainRuntime>, Pallet<ParachainRuntime>, DepositAll<ParachainRuntime>>
type OnChargeTransaction = TransferFees<Pallet<ParachainRuntime>, Pallet<ParachainRuntime>, DepositAll<ParachainRuntime>>
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
§type OperationalFeeMultiplier = ()
type OperationalFeeMultiplier = ()
A fee mulitplier for
Operational
extrinsics to compute “virtual tip” to boost their
priority
Read more§type WeightToFee = WeightToFee
type WeightToFee = WeightToFee
Convert a weight value into a deductible fee based on the currency type.
§type FeeMultiplierUpdate = TargetedFeeAdjustment<ParachainRuntime, TargetBlockFullness, AdjustmentVariable, MinimumMultiplier>
type FeeMultiplierUpdate = TargetedFeeAdjustment<ParachainRuntime, TargetBlockFullness, AdjustmentVariable, MinimumMultiplier>
Update the multiplier of the next block, based on the previous block’s weight.
§type LengthToFee = ConstantMultiplier<u128, TransactionByteFee>
type LengthToFee = ConstantMultiplier<u128, TransactionByteFee>
Convert a length value into a deductible fee based on the currency type.
source§impl Config for ParachainRuntime
impl Config for ParachainRuntime
§type Event = Event
type Event = Event
Because this pallet emits events, it depends on the runtime’s definition of an event.
§type AcceptedCurrencyOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
type AcceptedCurrencyOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
The origin which can add/remove accepted currencies
§type Currencies = Pallet<ParachainRuntime>
type Currencies = Pallet<ParachainRuntime>
Multi Currency
§type SpotPriceProvider = ParachainSpotPriceProviderStub
type SpotPriceProvider = ParachainSpotPriceProviderStub
Spot price provider
§type WeightInfo = ()
type WeightInfo = ()
Weight information for the extrinsics.
§type WithdrawFeeForSetCurrency = MultiPaymentCurrencySetFee
type WithdrawFeeForSetCurrency = MultiPaymentCurrencySetFee
Should fee be paid for setting a currency
§type WeightToFee = WeightToFee
type WeightToFee = WeightToFee
Convert a weight value into a deductible fee based on the currency type.
§type NativeAssetId = ParachainNativeCurrencyId
type NativeAssetId = ParachainNativeCurrencyId
Native Asset
§type FeeReceiver = ParachainTreasuryAccount
type FeeReceiver = ParachainTreasuryAccount
Account where fees are deposited
source§impl Config for ParachainRuntime
impl Config for ParachainRuntime
type Event = Event
§type XcmExecutor = XcmExecutor<XcmConfig>
type XcmExecutor = XcmExecutor<XcmConfig>
Something to execute an XCM message. We need this to service the XCMoXCMP queue.
§type ChannelInfo = Pallet<ParachainRuntime>
type ChannelInfo = Pallet<ParachainRuntime>
Information on the avaialble XCMP channels.
§type VersionWrapper = ()
type VersionWrapper = ()
Means of converting an
Xcm
into a VersionedXcm
.§type ExecuteOverweightOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
type ExecuteOverweightOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
The origin that is allowed to execute overweight messages.
§type ControllerOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
type ControllerOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
The origin that is allowed to resume or suspend the XCMP queue.
§type ControllerOriginConverter = (SovereignSignedViaLocation<(ParentIsPreset<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, SiblingParachainConvertsVia<Sibling, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, AccountId32Aliases<RelayNetwork, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>), Origin>, RelayChainAsNative<RelayChainOrigin, Origin>, SiblingParachainAsNative<Origin, Origin>, SignedAccountId32AsNative<RelayNetwork, Origin>, XcmPassthrough<Origin>)
type ControllerOriginConverter = (SovereignSignedViaLocation<(ParentIsPreset<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, SiblingParachainConvertsVia<Sibling, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, AccountId32Aliases<RelayNetwork, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>), Origin>, RelayChainAsNative<RelayChainOrigin, Origin>, SiblingParachainAsNative<Origin, Origin>, SignedAccountId32AsNative<RelayNetwork, Origin>, XcmPassthrough<Origin>)
The conversion function used to attempt to convert an XCM
MultiLocation
origin to a
superuser origin. Read more§type WeightInfo = ()
type WeightInfo = ()
The weight information of this pallet.
source§impl Config for ParachainRuntime
impl Config for ParachainRuntime
§type SendXcmOrigin = EnsureXcmOrigin<Origin, SignedToAccountId32<Origin, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, RelayNetwork>>
type SendXcmOrigin = EnsureXcmOrigin<Origin, SignedToAccountId32<Origin, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, RelayNetwork>>
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§type XcmRouter = (ParentAsUmp<Pallet<ParachainRuntime>, ()>, Pallet<ParachainRuntime>)
type XcmRouter = (ParentAsUmp<Pallet<ParachainRuntime>, ()>, Pallet<ParachainRuntime>)
The type used to actually dispatch an XCM to its destination.
§type ExecuteXcmOrigin = EnsureXcmOrigin<Origin, SignedToAccountId32<Origin, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, RelayNetwork>>
type ExecuteXcmOrigin = EnsureXcmOrigin<Origin, SignedToAccountId32<Origin, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, RelayNetwork>>
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§type XcmExecuteFilter = Everything
type XcmExecuteFilter = Everything
Our XCM filter which messages to be executed using
XcmExecutor
must pass.§type XcmExecutor = XcmExecutor<XcmConfig>
type XcmExecutor = XcmExecutor<XcmConfig>
Something to execute an XCM message.
§type XcmTeleportFilter = Nothing
type XcmTeleportFilter = Nothing
Our XCM filter which messages to be teleported using the dedicated extrinsic must pass.
§type XcmReserveTransferFilter = Everything
type XcmReserveTransferFilter = Everything
Our XCM filter which messages to be reserve-transferred using the dedicated extrinsic must pass.
§type Weigher = FixedWeightBounds<UnitWeightCost, Call, MaxInstructions>
type Weigher = FixedWeightBounds<UnitWeightCost, Call, MaxInstructions>
Means of measuring the weight consumed by an XCM message locally.
§type LocationInverter = LocationInverter<Ancestry>
type LocationInverter = LocationInverter<Ancestry>
Means of inverting a location.
const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 100u32
§type AdvertisedXcmVersion = CurrentXcmVersion
type AdvertisedXcmVersion = CurrentXcmVersion
The latest supported version that we advertise. Generally just set it to
pallet_xcm::CurrentXcmVersion
. Read moresource§impl Config for ParachainRuntime
impl Config for ParachainRuntime
type XcmExecutor = XcmExecutor<XcmConfig>
§type ExecuteOverweightOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
type ExecuteOverweightOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
Origin which is allowed to execute overweight messages.
source§impl Config for ParachainRuntime
impl Config for ParachainRuntime
type Event = Event
§type CurrencyId = u32
type CurrencyId = u32
The currency ID type
§type WeightInfo = ()
type WeightInfo = ()
Weight information for extrinsics in this module.
§type ExistentialDeposits = ExistentialDeposits
type ExistentialDeposits = ExistentialDeposits
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
type MaxLocks = MaxLocks
type DustRemovalWhitelist = Nothing
§type OnNewTokenAccount = ()
type OnNewTokenAccount = ()
Handler for when an account was created
§type OnKilledTokenAccount = ()
type OnKilledTokenAccount = ()
Handler for when an account was created
§type MaxReserves = MaxReserves
type MaxReserves = MaxReserves
The maximum number of named reserves that can exist on an account.
§type ReserveIdentifier = ()
type ReserveIdentifier = ()
The id type for named reserves.
source§impl Config for ParachainRuntime
impl Config for ParachainRuntime
type XcmExecutor = XcmExecutor<XcmConfig>
source§impl Config for ParachainRuntime
impl Config for ParachainRuntime
type Event = Event
§type RegistryOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
type RegistryOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
The origin which can work with asset-registry.
§type AssetNativeLocation = AssetLocation
type AssetNativeLocation = AssetLocation
Asset location type
§type StringLimit = RegistryStringLimit
type StringLimit = RegistryStringLimit
The maximum length of a name or symbol stored on-chain.
type SequentialIdStartAt = SequentialIdOffset
§type NativeAssetId = ParachainNativeCurrencyId
type NativeAssetId = ParachainNativeCurrencyId
Native Asset Id
§type WeightInfo = ()
type WeightInfo = ()
Weight information for the extrinsics
source§impl Config for ParachainRuntime
impl Config for ParachainRuntime
type Event = Event
§type CurrencyId = u32
type CurrencyId = u32
Currency Id.
§type CurrencyIdConvert = CurrencyIdConvert
type CurrencyIdConvert = CurrencyIdConvert
Convert
T::CurrencyId
to MultiLocation
.§type AccountIdToMultiLocation = AccountIdToMultiLocation
type AccountIdToMultiLocation = AccountIdToMultiLocation
Convert
T::AccountId
to MultiLocation
.§type SelfLocation = SelfLocation
type SelfLocation = SelfLocation
Self chain location.
§type MinXcmFee = ParachainMinFee
type MinXcmFee = ParachainMinFee
Minimum xcm execution fee paid on destination chain.
§type XcmExecutor = XcmExecutor<XcmConfig>
type XcmExecutor = XcmExecutor<XcmConfig>
XCM executor.
§type MultiLocationsFilter = Everything
type MultiLocationsFilter = Everything
MultiLocation filter
§type Weigher = FixedWeightBounds<BaseXcmWeight, Call, MaxInstructions>
type Weigher = FixedWeightBounds<BaseXcmWeight, Call, MaxInstructions>
Means of measuring the weight consumed by an XCM message locally.
§type BaseXcmWeight = BaseXcmWeight
type BaseXcmWeight = BaseXcmWeight
Base XCM weight. Read more
§type LocationInverter = LocationInverter<Ancestry>
type LocationInverter = LocationInverter<Ancestry>
Means of inverting a location.
§type MaxAssetsForTransfer = MaxAssetsForTransfer
type MaxAssetsForTransfer = MaxAssetsForTransfer
The maximum number of distinct assets allowed to be transferred in a
single helper extrinsic. Read more
§type ReserveProvider = AbsoluteReserveProvider
type ReserveProvider = AbsoluteReserveProvider
The way to retreave the reserve of a MultiAsset. This can be
configured to accept absolute or relative paths for self tokens Read more
source§impl Debug for ParachainRuntime
impl Debug for ParachainRuntime
source§impl EnsureInherentsAreFirst<Block<Header<<ParachainRuntime as Config>::BlockNumber, BlakeTwo256>, UncheckedExtrinsic<<ParachainRuntime as Config>::AccountId, <ParachainRuntime as Config>::Call, (), ()>>> for ParachainRuntime
impl EnsureInherentsAreFirst<Block<Header<<ParachainRuntime as Config>::BlockNumber, BlakeTwo256>, UncheckedExtrinsic<<ParachainRuntime as Config>::AccountId, <ParachainRuntime as Config>::Call, (), ()>>> for ParachainRuntime
source§fn ensure_inherents_are_first(
block: &MockBlock<ParachainRuntime>
) -> Result<(), u32>
fn ensure_inherents_are_first(
block: &MockBlock<ParachainRuntime>
) -> Result<(), u32>
Ensure the position of inherent is correct, i.e. they are before non-inherents. Read more
source§impl GetNodeBlockType for ParachainRuntime
impl GetNodeBlockType for ParachainRuntime
§type NodeBlock = Block<Header<<ParachainRuntime as Config>::BlockNumber, BlakeTwo256>, UncheckedExtrinsic<<ParachainRuntime as Config>::AccountId, <ParachainRuntime as Config>::Call, (), ()>>
type NodeBlock = Block<Header<<ParachainRuntime as Config>::BlockNumber, BlakeTwo256>, UncheckedExtrinsic<<ParachainRuntime as Config>::AccountId, <ParachainRuntime as Config>::Call, (), ()>>
The
NodeBlock
type.source§impl GetRuntimeBlockType for ParachainRuntime
impl GetRuntimeBlockType for ParachainRuntime
§type RuntimeBlock = Block<Header<<ParachainRuntime as Config>::BlockNumber, BlakeTwo256>, UncheckedExtrinsic<<ParachainRuntime as Config>::AccountId, <ParachainRuntime as Config>::Call, (), ()>>
type RuntimeBlock = Block<Header<<ParachainRuntime as Config>::BlockNumber, BlakeTwo256>, UncheckedExtrinsic<<ParachainRuntime as Config>::AccountId, <ParachainRuntime as Config>::Call, (), ()>>
The
RuntimeBlock
type.source§impl PartialEq<ParachainRuntime> for ParachainRuntime
impl PartialEq<ParachainRuntime> for ParachainRuntime
source§fn eq(&self, other: &ParachainRuntime) -> bool
fn eq(&self, other: &ParachainRuntime) -> bool
source§impl TypeInfo for ParachainRuntime
impl TypeInfo for ParachainRuntime
source§impl ValidateUnsigned for ParachainRuntime
impl ValidateUnsigned for ParachainRuntime
source§fn pre_dispatch(call: &Self::Call) -> Result<(), TransactionValidityError>
fn pre_dispatch(call: &Self::Call) -> Result<(), TransactionValidityError>
Validate the call right before dispatch. Read more
source§fn validate_unsigned(
source: TransactionSource,
call: &Self::Call
) -> TransactionValidity
fn validate_unsigned(
source: TransactionSource,
call: &Self::Call
) -> TransactionValidity
Return the validity of the call Read more
impl Config for ParachainRuntime
impl Copy for ParachainRuntime
impl Eq for ParachainRuntime
impl StructuralEq for ParachainRuntime
impl StructuralPartialEq for ParachainRuntime
Auto Trait Implementations§
impl RefUnwindSafe for ParachainRuntime
impl Send for ParachainRuntime
impl Sync for ParachainRuntime
impl Unpin for ParachainRuntime
impl UnwindSafe for ParachainRuntime
Blanket Implementations§
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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 moresource§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read moresource§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. Read moresource§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. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
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,
source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
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> 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, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§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) -> Rwhere
Self: Borrow<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> Rwhere
Self: Borrow<B>,
B: 'a + ?Sized,
R: 'a,
source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> Rwhere
Self: BorrowMut<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> Rwhere
Self: BorrowMut<B>,
B: 'a + ?Sized,
R: 'a,
source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> Rwhere
Self: AsRef<U>,
U: 'a + ?Sized,
R: 'a,
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> Rwhere
Self: AsRef<U>,
U: 'a + ?Sized,
R: 'a,
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) -> Rwhere
Self: AsMut<U>,
U: 'a + ?Sized,
R: 'a,
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> Rwhere
Self: AsMut<U>,
U: 'a + ?Sized,
R: 'a,
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T
. Read moresource§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.source§impl<T> Tap for T
impl<T> Tap for T
source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
Immutable access to the
Borrow<B>
of a value. Read moresource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
Mutable access to the
BorrowMut<B>
of a value. Read moresource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
Immutable access to the
AsRef<R>
view of a value. Read moresource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
Mutable access to the
AsMut<R>
view of a value. Read moresource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Selfwhere
Self: Deref<Target = T>,
T: ?Sized,
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Selfwhere
Self: Deref<Target = T>,
T: ?Sized,
Immutable access to the
Deref::Target
of a value. Read moresource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
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. Read moresource§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
Calls
.tap_borrow()
only in debug builds, and is erased in release
builds. Read moresource§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
Calls
.tap_borrow_mut()
only in debug builds, and is erased in release
builds. Read moresource§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
Calls
.tap_ref()
only in debug builds, and is erased in release
builds. Read moresource§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
Calls
.tap_ref_mut()
only in debug builds, and is erased in release
builds. Read moresource§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.source§impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.