pub struct Pallet<T>(/* private fields */);
Expand description
The Pallet
struct, the main type that implements traits and standalone
functions within the pallet.
Implementations§
source§impl<T: Config> Pallet<T>
impl<T: Config> Pallet<T>
pub fn submit_bundle( origin: OriginFor<T>, opaque_bundle: OpaqueBundleOf<T>, ) -> DispatchResultWithPostInfo
pub fn submit_fraud_proof( origin: OriginFor<T>, fraud_proof: Box<FraudProofFor<T>>, ) -> DispatchResultWithPostInfo
pub fn register_domain_runtime( origin: OriginFor<T>, runtime_name: String, runtime_type: RuntimeType, raw_genesis_storage: Vec<u8>, ) -> DispatchResult
pub fn upgrade_domain_runtime( origin: OriginFor<T>, runtime_id: RuntimeId, raw_genesis_storage: Vec<u8>, ) -> DispatchResult
pub fn register_operator( origin: OriginFor<T>, domain_id: DomainId, amount: <T as Config>::Balance, config: OperatorConfig<<T as Config>::Balance>, signing_key_proof_of_ownership: OperatorSignature, ) -> DispatchResult
pub fn nominate_operator( origin: OriginFor<T>, operator_id: OperatorId, amount: <T as Config>::Balance, ) -> DispatchResult
pub fn instantiate_domain( origin: OriginFor<T>, domain_config_params: DomainConfigParams<T::AccountId, <T as Config>::Balance>, ) -> DispatchResult
pub fn deregister_operator( origin: OriginFor<T>, operator_id: OperatorId, ) -> DispatchResult
pub fn withdraw_stake( origin: OriginFor<T>, operator_id: OperatorId, to_withdraw: WithdrawStake<<T as Config>::Balance, T::Share>, ) -> DispatchResult
sourcepub fn unlock_funds(
origin: OriginFor<T>,
operator_id: OperatorId,
) -> DispatchResult
pub fn unlock_funds( origin: OriginFor<T>, operator_id: OperatorId, ) -> DispatchResult
Unlocks the first withdrawal given the unlocking period is complete. Even if rest of the withdrawals are out of unlocking period, nominator should call this extrinsic to unlock each withdrawal
sourcepub fn unlock_nominator(
origin: OriginFor<T>,
operator_id: OperatorId,
) -> DispatchResult
pub fn unlock_nominator( origin: OriginFor<T>, operator_id: OperatorId, ) -> DispatchResult
Unlocks the nominator under given operator given the unlocking period is complete. A nominator can initiate their unlock given operator is already deregistered.
sourcepub fn update_domain_operator_allow_list(
origin: OriginFor<T>,
domain_id: DomainId,
operator_allow_list: OperatorAllowList<T::AccountId>,
) -> DispatchResult
pub fn update_domain_operator_allow_list( origin: OriginFor<T>, domain_id: DomainId, operator_allow_list: OperatorAllowList<T::AccountId>, ) -> DispatchResult
Extrinsic to update domain’s operator allow list. Note:
- If the previous allowed list is set to specific operators and new allow list is set
to
Anyone
, then domain will become permissioned to open for all operators. - If the previous allowed list is set to
Anyone
or specific operators and the new allow list is set to specific operators, then all the registered not allowed operators will continue to operate until they de-register themselves.
sourcepub fn force_staking_epoch_transition(
origin: OriginFor<T>,
domain_id: DomainId,
) -> DispatchResultWithPostInfo
pub fn force_staking_epoch_transition( origin: OriginFor<T>, domain_id: DomainId, ) -> DispatchResultWithPostInfo
Force staking epoch transition for a given domain
sourcepub fn set_permissioned_action_allowed_by(
origin: OriginFor<T>,
permissioned_action_allowed_by: PermissionedActionAllowedBy<T::AccountId>,
) -> DispatchResult
pub fn set_permissioned_action_allowed_by( origin: OriginFor<T>, permissioned_action_allowed_by: PermissionedActionAllowedBy<T::AccountId>, ) -> DispatchResult
Update permissioned action allowed by storage by Sudo.
sourcepub fn send_domain_sudo_call(
origin: OriginFor<T>,
domain_id: DomainId,
call: Vec<u8>,
) -> DispatchResult
pub fn send_domain_sudo_call( origin: OriginFor<T>, domain_id: DomainId, call: Vec<u8>, ) -> DispatchResult
Submit a domain sudo call.
sourcepub fn freeze_domain(
origin: OriginFor<T>,
domain_id: DomainId,
) -> DispatchResult
pub fn freeze_domain( origin: OriginFor<T>, domain_id: DomainId, ) -> DispatchResult
Freezes a given domain. A frozen domain does not accept new bundles but accepts fraud proofs.
sourcepub fn unfreeze_domain(
origin: OriginFor<T>,
domain_id: DomainId,
) -> DispatchResult
pub fn unfreeze_domain( origin: OriginFor<T>, domain_id: DomainId, ) -> DispatchResult
Unfreezes a frozen domain.
sourcepub fn prune_domain_execution_receipt(
origin: OriginFor<T>,
domain_id: DomainId,
bad_receipt_hash: ReceiptHashFor<T>,
) -> DispatchResultWithPostInfo
pub fn prune_domain_execution_receipt( origin: OriginFor<T>, domain_id: DomainId, bad_receipt_hash: ReceiptHashFor<T>, ) -> DispatchResultWithPostInfo
Prunes a given execution receipt for given frozen domain. This call assumes the execution receipt to be bad and implicitly trusts Sudo to do necessary validation of the ER before dispatching this call.
sourcepub fn transfer_treasury_funds(
origin: OriginFor<T>,
account_id: T::AccountId,
balance: <T as Config>::Balance,
) -> DispatchResult
pub fn transfer_treasury_funds( origin: OriginFor<T>, account_id: T::AccountId, balance: <T as Config>::Balance, ) -> DispatchResult
Transfer funds from treasury to given account
pub fn submit_receipt( origin: OriginFor<T>, singleton_receipt: SingletonReceiptOf<T>, ) -> DispatchResultWithPostInfo
source§impl<T: Config> Pallet<T>
impl<T: Config> Pallet<T>
sourcepub fn operator_signing_key<KArg>(k: KArg) -> Option<OperatorId>where
KArg: EncodeLike<OperatorPublicKey>,
pub fn operator_signing_key<KArg>(k: KArg) -> Option<OperatorId>where
KArg: EncodeLike<OperatorPublicKey>,
An auto-generated getter for OperatorSigningKey
.
source§impl<T: Config> Pallet<T>
impl<T: Config> Pallet<T>
sourcepub fn domain_staking_summary<KArg>(
k: KArg,
) -> Option<StakingSummary<OperatorId, <T as Config>::Balance>>where
KArg: EncodeLike<DomainId>,
pub fn domain_staking_summary<KArg>(
k: KArg,
) -> Option<StakingSummary<OperatorId, <T as Config>::Balance>>where
KArg: EncodeLike<DomainId>,
An auto-generated getter for DomainStakingSummary
.
source§impl<T: Config> Pallet<T>
impl<T: Config> Pallet<T>
sourcepub fn next_domain_id() -> DomainId
pub fn next_domain_id() -> DomainId
An auto-generated getter for NextDomainId
.
source§impl<T: Config> Pallet<T>
impl<T: Config> Pallet<T>
sourcepub fn consensus_block_info<KArg1, KArg2>(
k1: KArg1,
k2: KArg2,
) -> Option<T::Hash>where
KArg1: EncodeLike<DomainId>,
KArg2: EncodeLike<BlockNumberFor<T>>,
pub fn consensus_block_info<KArg1, KArg2>(
k1: KArg1,
k2: KArg2,
) -> Option<T::Hash>where
KArg1: EncodeLike<DomainId>,
KArg2: EncodeLike<BlockNumberFor<T>>,
An auto-generated getter for ConsensusBlockHash
.
source§impl<T: Config> Pallet<T>
impl<T: Config> Pallet<T>
sourcepub fn latest_confirmed_domain_execution_receipt<KArg>(
k: KArg,
) -> Option<ExecutionReceiptOf<T>>where
KArg: EncodeLike<DomainId>,
pub fn latest_confirmed_domain_execution_receipt<KArg>(
k: KArg,
) -> Option<ExecutionReceiptOf<T>>where
KArg: EncodeLike<DomainId>,
An auto-generated getter for LatestConfirmedDomainExecutionReceipt
.
source§impl<T: Config> Pallet<T>
impl<T: Config> Pallet<T>
sourcepub fn latest_submitted_er<KArg>(k: KArg) -> DomainBlockNumberFor<T>where
KArg: EncodeLike<(DomainId, OperatorId)>,
pub fn latest_submitted_er<KArg>(k: KArg) -> DomainBlockNumberFor<T>where
KArg: EncodeLike<(DomainId, OperatorId)>,
An auto-generated getter for LatestSubmittedER
.
source§impl<T: Config> Pallet<T>
impl<T: Config> Pallet<T>
pub fn successful_bundles(domain_id: DomainId) -> Vec<H256>
pub fn domain_runtime_code(domain_id: DomainId) -> Option<Vec<u8>>
pub fn domain_best_number( domain_id: DomainId, ) -> Result<DomainBlockNumberFor<T>, BundleError>
pub fn runtime_id(domain_id: DomainId) -> Option<RuntimeId>
pub fn domain_instance_data( domain_id: DomainId, ) -> Option<(DomainInstanceData, BlockNumberFor<T>)>
pub fn genesis_state_root(domain_id: DomainId) -> Option<H256>
sourcepub fn domain_tx_range(domain_id: DomainId) -> U256
pub fn domain_tx_range(domain_id: DomainId) -> U256
Returns the tx range for the domain.
pub fn bundle_producer_election_params( domain_id: DomainId, ) -> Option<BundleProducerElectionParams<<T as Config>::Balance>>
pub fn operator( operator_id: OperatorId, ) -> Option<(OperatorPublicKey, <T as Config>::Balance)>
sourcepub fn head_receipt_number(domain_id: DomainId) -> DomainBlockNumberFor<T>
pub fn head_receipt_number(domain_id: DomainId) -> DomainBlockNumberFor<T>
Returns the best execution chain number.
sourcepub fn oldest_unconfirmed_receipt_number(
domain_id: DomainId,
) -> Option<DomainBlockNumberFor<T>>
pub fn oldest_unconfirmed_receipt_number( domain_id: DomainId, ) -> Option<DomainBlockNumberFor<T>>
Returns the block number of the oldest existing unconfirmed execution receipt, return None
means there is no unconfirmed ER exist or submitted yet.
sourcepub fn latest_confirmed_domain_block_number(
domain_id: DomainId,
) -> DomainBlockNumberFor<T>
pub fn latest_confirmed_domain_block_number( domain_id: DomainId, ) -> DomainBlockNumberFor<T>
Returns the latest confirmed domain block number for a given domain Zero block is always a default confirmed block.
pub fn latest_confirmed_domain_block( domain_id: DomainId, ) -> Option<(DomainBlockNumberFor<T>, T::DomainHash)>
sourcepub fn domain_bundle_limit(
domain_id: DomainId,
) -> Result<Option<DomainBundleLimit>, DomainRegistryError>
pub fn domain_bundle_limit( domain_id: DomainId, ) -> Result<Option<DomainBundleLimit>, DomainRegistryError>
Returns the domain bundle limit of the given domain
sourcepub fn non_empty_er_exists(domain_id: DomainId) -> bool
pub fn non_empty_er_exists(domain_id: DomainId) -> bool
Returns if there are any ERs in the challenge period that have non empty extrinsics. Note that Genesis ER is also considered special and hence non empty
pub fn extrinsics_shuffling_seed() -> T::Hash
pub fn execution_receipt( receipt_hash: ReceiptHashFor<T>, ) -> Option<ExecutionReceiptOf<T>>
pub fn receipt_hash( domain_id: DomainId, domain_number: DomainBlockNumberFor<T>, ) -> Option<ReceiptHashFor<T>>
pub fn confirmed_domain_block_storage_key(domain_id: DomainId) -> Vec<u8> ⓘ
pub fn is_bad_er_pending_to_prune( domain_id: DomainId, receipt_number: DomainBlockNumberFor<T>, ) -> bool
pub fn is_operator_pending_to_slash( domain_id: DomainId, operator_id: OperatorId, ) -> bool
pub fn max_submit_bundle_weight() -> Weight
pub fn max_submit_receipt_weight() -> Weight
pub fn max_staking_epoch_transition() -> Weight
pub fn max_prune_domain_execution_receipt() -> Weight
sourcepub fn reward_domain_operators(
domain_id: DomainId,
source: OperatorRewardSource<BlockNumberFor<T>>,
rewards: <T as Config>::Balance,
)
pub fn reward_domain_operators( domain_id: DomainId, source: OperatorRewardSource<BlockNumberFor<T>>, rewards: <T as Config>::Balance, )
Reward the active operators of this domain epoch.
pub fn storage_fund_account_balance( operator_id: OperatorId, ) -> <T as Config>::Balance
pub fn operator_highest_slot_from_previous_block( operator_id: OperatorId, pre_dispatch: bool, ) -> u64
pub fn get_domain_runtime_code_for_receipt( domain_id: DomainId, receipt: &ExecutionReceiptOf<T>, maybe_domain_runtime_code_at: Option<DomainRuntimeCodeAt<BlockNumberFor<T>, T::Hash, T::MmrHash>>, ) -> Result<Vec<u8>, FraudProofError>
pub fn is_domain_runtime_upgraded_since( domain_id: DomainId, at: BlockNumberFor<T>, ) -> Option<bool>
pub fn verify_mmr_proof_and_extract_state_root( mmr_leaf_proof: ConsensusChainMmrLeafProof<BlockNumberFor<T>, T::Hash, T::MmrHash>, expected_block_number: BlockNumberFor<T>, ) -> Result<T::Hash, FraudProofError>
sourcepub fn is_domain_registered(domain_id: DomainId) -> bool
pub fn is_domain_registered(domain_id: DomainId) -> bool
Returns true if the Domain is registered.
sourcepub fn domain_sudo_call(domain_id: DomainId) -> Option<Vec<u8>>
pub fn domain_sudo_call(domain_id: DomainId) -> Option<Vec<u8>>
Returns domain’s sudo call if any.
pub fn receipt_gap( domain_id: DomainId, ) -> Result<DomainBlockNumberFor<T>, BundleError>
source§impl<T> Pallet<T>
impl<T> Pallet<T>
sourcepub fn submit_bundle_unsigned(opaque_bundle: OpaqueBundleOf<T>)
pub fn submit_bundle_unsigned(opaque_bundle: OpaqueBundleOf<T>)
Submits an unsigned extrinsic Call::submit_bundle
.
sourcepub fn submit_receipt_unsigned(singleton_receipt: SingletonReceiptOf<T>)
pub fn submit_receipt_unsigned(singleton_receipt: SingletonReceiptOf<T>)
Submits an unsigned extrinsic Call::submit_receipt
.
sourcepub fn submit_fraud_proof_unsigned(fraud_proof: FraudProofFor<T>)
pub fn submit_fraud_proof_unsigned(fraud_proof: FraudProofFor<T>)
Submits an unsigned extrinsic Call::submit_fraud_proof
.
Trait Implementations§
source§impl<T: Config> BeforeAllRuntimeMigrations for Pallet<T>
impl<T: Config> BeforeAllRuntimeMigrations for Pallet<T>
source§fn before_all_runtime_migrations() -> Weight
fn before_all_runtime_migrations() -> Weight
source§impl<T: Config> DomainOwner<<T as Config>::AccountId> for Pallet<T>
impl<T: Config> DomainOwner<<T as Config>::AccountId> for Pallet<T>
source§fn is_domain_owner(domain_id: DomainId, acc: T::AccountId) -> bool
fn is_domain_owner(domain_id: DomainId, acc: T::AccountId) -> bool
source§impl<T: Config> GetStorageVersion for Pallet<T>
impl<T: Config> GetStorageVersion for Pallet<T>
source§type InCodeStorageVersion = StorageVersion
type InCodeStorageVersion = StorageVersion
source§fn in_code_storage_version() -> Self::InCodeStorageVersion
fn in_code_storage_version() -> Self::InCodeStorageVersion
storage_version
attribute, or
[NoStorageVersionSet
] if the attribute is missing.source§fn on_chain_storage_version() -> StorageVersion
fn on_chain_storage_version() -> StorageVersion
§fn current_storage_version() -> Self::InCodeStorageVersion
fn current_storage_version() -> Self::InCodeStorageVersion
in_code_storage_version
and will be removed after March 2024.Self::current_storage_version
] instead. Read moresource§impl<T: Config> Hooks<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>
impl<T: Config> Hooks<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>
source§fn on_initialize(block_number: BlockNumberFor<T>) -> Weight
fn on_initialize(block_number: BlockNumberFor<T>) -> Weight
source§fn on_finalize(_: BlockNumberFor<T>)
fn on_finalize(_: BlockNumberFor<T>)
§fn on_idle(_n: BlockNumber, _remaining_weight: Weight) -> Weight
fn on_idle(_n: BlockNumber, _remaining_weight: Weight) -> Weight
Hooks::on_finalize
]). Read more§fn on_poll(_n: BlockNumber, _weight: &mut WeightMeter)
fn on_poll(_n: BlockNumber, _weight: &mut WeightMeter)
§fn on_runtime_upgrade() -> Weight
fn on_runtime_upgrade() -> Weight
Executive
pallet. Read more§fn offchain_worker(_n: BlockNumber)
fn offchain_worker(_n: BlockNumber)
§fn integrity_test()
fn integrity_test()
source§impl<T: Config> IntegrityTest for Pallet<T>
impl<T: Config> IntegrityTest for Pallet<T>
source§fn integrity_test()
fn integrity_test()
Hooks::integrity_test
].source§impl<T: Config> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>
impl<T: Config> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>
source§fn offchain_worker(n: BlockNumberFor<T>)
fn offchain_worker(n: BlockNumberFor<T>)
source§impl<T: Config> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>
impl<T: Config> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>
source§fn on_finalize(n: BlockNumberFor<T>)
fn on_finalize(n: BlockNumberFor<T>)
Hooks::on_finalize
].source§impl<T: Config> OnGenesis for Pallet<T>
impl<T: Config> OnGenesis for Pallet<T>
source§fn on_genesis()
fn on_genesis()
source§impl<T: Config> OnIdle<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>
impl<T: Config> OnIdle<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>
source§impl<T: Config> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>
impl<T: Config> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>
source§fn on_initialize(n: BlockNumberFor<T>) -> Weight
fn on_initialize(n: BlockNumberFor<T>) -> Weight
Hooks::on_initialize
].source§impl<T: Config> OnPoll<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>
impl<T: Config> OnPoll<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>
source§impl<T: Config> OnRuntimeUpgrade for Pallet<T>
impl<T: Config> OnRuntimeUpgrade for Pallet<T>
source§fn on_runtime_upgrade() -> Weight
fn on_runtime_upgrade() -> Weight
Hooks::on_runtime_upgrade
].source§impl<T: Config> PalletInfoAccess for Pallet<T>
impl<T: Config> PalletInfoAccess for Pallet<T>
source§fn module_name() -> &'static str
fn module_name() -> &'static str
source§fn crate_version() -> CrateVersion
fn crate_version() -> CrateVersion
source§impl<T: Config> ValidateUnsigned for Pallet<T>
impl<T: Config> ValidateUnsigned for Pallet<T>
source§fn pre_dispatch(call: &Self::Call) -> Result<(), TransactionValidityError>
fn pre_dispatch(call: &Self::Call) -> Result<(), TransactionValidityError>
source§fn validate_unsigned(
_source: TransactionSource,
call: &Self::Call,
) -> TransactionValidity
fn validate_unsigned( _source: TransactionSource, call: &Self::Call, ) -> TransactionValidity
source§impl<T: Config> WhitelistedStorageKeys for Pallet<T>
impl<T: Config> WhitelistedStorageKeys for Pallet<T>
source§fn whitelisted_storage_keys() -> Vec<TrackedStorageKey>
fn whitelisted_storage_keys() -> Vec<TrackedStorageKey>
Vec<TrackedStorageKey>
indicating the storage keys that
should be whitelisted during benchmarking. This means that those keys
will be excluded from the benchmarking performance calculation.impl<T> Eq for Pallet<T>
Auto Trait Implementations§
impl<T> Freeze for Pallet<T>
impl<T> RefUnwindSafe for Pallet<T>where
T: RefUnwindSafe,
impl<T> Send for Pallet<T>where
T: Send,
impl<T> Sync for Pallet<T>where
T: Sync,
impl<T> Unpin for Pallet<T>where
T: Unpin,
impl<T> UnwindSafe for Pallet<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> IsType<T> for T
impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T
. Read more§impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
type Error = <U as TryFromKey<T>>::Error
fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>
§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.