Struct pallet_dapp_staking::pallet::Pallet  
source · 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>
sourcepub fn unbond_and_unstake(
    origin: OriginFor<T>,
    _contract_id: T::SmartContract,
    value: Balance,
) -> DispatchResult
 
pub fn unbond_and_unstake( origin: OriginFor<T>, _contract_id: T::SmartContract, value: Balance, ) -> DispatchResult
Wrapper around legacy-like unbond_and_unstake.
Used to support legacy Ledger users so they can start the unlocking process for their funds.
sourcepub fn withdraw_unbonded(origin: OriginFor<T>) -> DispatchResultWithPostInfo
 
pub fn withdraw_unbonded(origin: OriginFor<T>) -> DispatchResultWithPostInfo
Wrapper around legacy-like withdraw_unbonded.
Used to support legacy Ledger users so they can reclaim unlocked chunks back into their transferable free balance.
sourcepub fn maintenance_mode(origin: OriginFor<T>, enabled: bool) -> DispatchResult
 
pub fn maintenance_mode(origin: OriginFor<T>, enabled: bool) -> DispatchResult
Used to enable or disable maintenance mode. Can only be called by manager origin.
sourcepub fn register(
    origin: OriginFor<T>,
    owner: T::AccountId,
    smart_contract: T::SmartContract,
) -> DispatchResult
 
pub fn register( origin: OriginFor<T>, owner: T::AccountId, smart_contract: T::SmartContract, ) -> DispatchResult
Used to register a new contract for dApp staking.
If successful, smart contract will be assigned a simple, unique numerical identifier. Owner is set to be initial beneficiary & manager of the dApp.
sourcepub fn set_dapp_reward_beneficiary(
    origin: OriginFor<T>,
    smart_contract: T::SmartContract,
    beneficiary: Option<T::AccountId>,
) -> DispatchResult
 
pub fn set_dapp_reward_beneficiary( origin: OriginFor<T>, smart_contract: T::SmartContract, beneficiary: Option<T::AccountId>, ) -> DispatchResult
Used to modify the reward beneficiary account for a dApp.
Caller has to be dApp owner.
If set to None, rewards will be deposited to the dApp owner.
After this call, all existing & future rewards will be paid out to the beneficiary.
sourcepub fn set_dapp_owner(
    origin: OriginFor<T>,
    smart_contract: T::SmartContract,
    new_owner: T::AccountId,
) -> DispatchResult
 
pub fn set_dapp_owner( origin: OriginFor<T>, smart_contract: T::SmartContract, new_owner: T::AccountId, ) -> DispatchResult
Used to change dApp owner.
Can be called by dApp owner or dApp staking manager origin. This is useful in two cases:
- when the dApp owner account is compromised, manager can change the owner to a new account
 - if project wants to transfer ownership to a new account (DAO, multisig, etc.).
 
sourcepub fn unregister(
    origin: OriginFor<T>,
    smart_contract: T::SmartContract,
) -> DispatchResult
 
pub fn unregister( origin: OriginFor<T>, smart_contract: T::SmartContract, ) -> DispatchResult
Unregister dApp from dApp staking protocol, making it ineligible for future rewards. This doesn’t remove the dApp completely from the system just yet, but it can no longer be used for staking.
Can be called by dApp staking manager origin.
sourcepub fn lock(origin: OriginFor<T>, amount: Balance) -> DispatchResultWithPostInfo
 
pub fn lock(origin: OriginFor<T>, amount: Balance) -> DispatchResultWithPostInfo
Locks additional funds into dApp staking.
In case caller account doesn’t have sufficient balance to cover the specified amount, everything is locked. After adjustment, lock amount must be greater than zero and in total must be equal or greater than the minimum locked amount.
Locked amount can immediately be used for staking.
sourcepub fn unlock(origin: OriginFor<T>, amount: Balance) -> DispatchResult
 
pub fn unlock(origin: OriginFor<T>, amount: Balance) -> DispatchResult
Attempts to start the unlocking process for the specified amount.
Only the amount that isn’t actively used for staking can be unlocked. If the amount is greater than the available amount for unlocking, everything is unlocked. If the remaining locked amount would take the account below the minimum locked amount, everything is unlocked.
sourcepub fn claim_unlocked(origin: OriginFor<T>) -> DispatchResultWithPostInfo
 
pub fn claim_unlocked(origin: OriginFor<T>) -> DispatchResultWithPostInfo
Claims all of fully unlocked chunks, removing the lock from them.
pub fn relock_unlocking(origin: OriginFor<T>) -> DispatchResult
sourcepub fn stake(
    origin: OriginFor<T>,
    smart_contract: T::SmartContract,
    amount: Balance,
) -> DispatchResult
 
pub fn stake( origin: OriginFor<T>, smart_contract: T::SmartContract, amount: Balance, ) -> DispatchResult
Stake the specified amount on a smart contract.
The precise amount specified must be available for staking.
The total amount staked on a dApp must be greater than the minimum required value.
Depending on the period type, appropriate stake amount will be updated. During Voting subperiod, voting stake amount is updated,
and same for Build&Earn subperiod.
Staked amount is only eligible for rewards from the next era onwards.
sourcepub fn unstake(
    origin: OriginFor<T>,
    smart_contract: T::SmartContract,
    amount: Balance,
) -> DispatchResult
 
pub fn unstake( origin: OriginFor<T>, smart_contract: T::SmartContract, amount: Balance, ) -> DispatchResult
Unstake the specified amount from a smart contract.
The amount specified must not exceed what’s staked, otherwise the call will fail.
If unstaking the specified amount would take staker below the minimum stake threshold, everything is unstaked.
Depending on the period type, appropriate stake amount will be updated.
In case amount is unstaked during Voting subperiod, the voting amount is reduced.
In case amount is unstaked during Build&Earn subperiod, first the build_and_earn is reduced,
and any spillover is subtracted from the voting amount.
sourcepub fn claim_staker_rewards(origin: OriginFor<T>) -> DispatchResultWithPostInfo
 
pub fn claim_staker_rewards(origin: OriginFor<T>) -> DispatchResultWithPostInfo
Claims some staker rewards, if user has any. In the case of a successful call, at least one era will be claimed, with the possibility of multiple claims happening.
sourcepub fn claim_bonus_reward(
    origin: OriginFor<T>,
    smart_contract: T::SmartContract,
) -> DispatchResult
 
pub fn claim_bonus_reward( origin: OriginFor<T>, smart_contract: T::SmartContract, ) -> DispatchResult
Used to claim bonus reward for a smart contract, if eligible.
sourcepub fn claim_dapp_reward(
    origin: OriginFor<T>,
    smart_contract: T::SmartContract,
    era: EraNumber,
) -> DispatchResult
 
pub fn claim_dapp_reward( origin: OriginFor<T>, smart_contract: T::SmartContract, era: EraNumber, ) -> DispatchResult
Used to claim dApp reward for the specified era.
sourcepub fn unstake_from_unregistered(
    origin: OriginFor<T>,
    smart_contract: T::SmartContract,
) -> DispatchResult
 
pub fn unstake_from_unregistered( origin: OriginFor<T>, smart_contract: T::SmartContract, ) -> DispatchResult
Used to unstake funds from a contract that was unregistered after an account staked on it. This is required if staker wants to re-stake these funds on another active contract during the ongoing period.
sourcepub fn cleanup_expired_entries(
    origin: OriginFor<T>,
) -> DispatchResultWithPostInfo
 
pub fn cleanup_expired_entries( origin: OriginFor<T>, ) -> DispatchResultWithPostInfo
Cleanup expired stake entries for the contract.
Entry is considered to be expired if:
- It’s from a past period & the account did not maintain an eligible bonus status, meaning there’s no claimable bonus reward.
 - It’s from a period older than the oldest claimable period, regardless of whether the account had an eligible bonus status or not.
 
sourcepub fn force(origin: OriginFor<T>, forcing_type: ForcingType) -> DispatchResult
 
pub fn force(origin: OriginFor<T>, forcing_type: ForcingType) -> DispatchResult
Used to force a change of era or subperiod. The effect isn’t immediate but will happen on the next block.
Used for testing purposes, when we want to force an era change, or a subperiod change. Not intended to be used in production, except in case of unforeseen circumstances.
Can only be called by the root origin.
sourcepub fn claim_staker_rewards_for(
    origin: OriginFor<T>,
    account: T::AccountId,
) -> DispatchResultWithPostInfo
 
pub fn claim_staker_rewards_for( origin: OriginFor<T>, account: T::AccountId, ) -> DispatchResultWithPostInfo
Claims some staker rewards for the specified account, if they have any. In the case of a successful call, at least one era will be claimed, with the possibility of multiple claims happening.
sourcepub fn claim_bonus_reward_for(
    origin: OriginFor<T>,
    account: T::AccountId,
    smart_contract: T::SmartContract,
) -> DispatchResult
 
pub fn claim_bonus_reward_for( origin: OriginFor<T>, account: T::AccountId, smart_contract: T::SmartContract, ) -> DispatchResult
Used to claim bonus reward for a smart contract on behalf of the specified account, if eligible.
sourcepub fn move_stake(
    origin: OriginFor<T>,
    source_contract: T::SmartContract,
    destination_contract: T::SmartContract,
    amount: Balance,
) -> DispatchResultWithPostInfo
 
pub fn move_stake( origin: OriginFor<T>, source_contract: T::SmartContract, destination_contract: T::SmartContract, amount: Balance, ) -> DispatchResultWithPostInfo
Transfers stake between two smart contracts, ensuring bonus status preservation if eligible.
Emits a StakeMoved event.
sourcepub fn set_static_tier_params(
    origin: OriginFor<T>,
    params: TierParameters<T::NumberOfTiers>,
) -> DispatchResult
 
pub fn set_static_tier_params( origin: OriginFor<T>, params: TierParameters<T::NumberOfTiers>, ) -> DispatchResult
Used to set static tier parameters, which are used to calculate tier configuration. Tier configuration defines tier entry threshold values, number of slots, and reward portions.
This is a delicate call and great care should be taken when changing these values since it has a significant impact on the reward system.
source§impl<T: Config> Pallet<T>
 
impl<T: Config> Pallet<T>
sourcepub fn inner_unstake(
    account: &T::AccountId,
    smart_contract: &T::SmartContract,
    amount: Balance,
) -> Result<(StakeAmount, BonusStatus), DispatchError>
 
pub fn inner_unstake( account: &T::AccountId, smart_contract: &T::SmartContract, amount: Balance, ) -> Result<(StakeAmount, BonusStatus), DispatchError>
Inner unstake functionality for an active smart contract.
If successful returns the StakeAmount that was unstaked, and the updated bonus status.
- Ensures the contract is still registered.
 - Updates staker info, ledger, and contract stake info.
 - Returns the unstaked amount and updated bonus status.
 
sourcepub fn inner_unstake_from_unregistered(
    account: &T::AccountId,
    smart_contract: &T::SmartContract,
) -> Result<(StakeAmount, BonusStatus), DispatchError>
 
pub fn inner_unstake_from_unregistered( account: &T::AccountId, smart_contract: &T::SmartContract, ) -> Result<(StakeAmount, BonusStatus), DispatchError>
Handles unstaking from an unregistered smart contract.
- Ensures the contract is no longer active.
 - Updates staker info and ledger.
 - Returns the unstaked amount and preserves the original bonus status.
 
sourcepub fn inner_stake(
    account: &T::AccountId,
    smart_contract: &T::SmartContract,
    amount: StakeAmount,
    bonus_status: BonusStatus,
) -> Result<(), DispatchError>
 
pub fn inner_stake( account: &T::AccountId, smart_contract: &T::SmartContract, amount: StakeAmount, bonus_status: BonusStatus, ) -> Result<(), DispatchError>
Inner stake functionality.
Specifies the amount in the form of the StakeAmount struct, allowing simultaneous update of both voting and build_and_earn amounts.
The bonus_status is used to determine if the staker is still eligible for the bonus reward. This is useful for the move extrinsic.
sourcepub fn is_staker(account: &T::AccountId) -> bool
 
pub fn is_staker(account: &T::AccountId) -> bool
true if the account is a staker, false otherwise.
sourcepub fn era_reward_span_index(era: EraNumber) -> EraNumber
 
pub fn era_reward_span_index(era: EraNumber) -> EraNumber
Calculates the EraRewardSpan index for the specified era.
sourcepub fn unlocking_period() -> BlockNumber
 
pub fn unlocking_period() -> BlockNumber
Unlocking period expressed in the number of blocks.
sourcepub fn get_dapp_tier_assignment() -> BTreeMap<DAppId, RankedTier>
 
pub fn get_dapp_tier_assignment() -> BTreeMap<DAppId, RankedTier>
Returns the dApp tier assignment for the current era, based on the current stake amounts.
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> GetStorageVersion for Pallet<T>
 
impl<T: Config> GetStorageVersion for Pallet<T>
§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(now: BlockNumberFor<T>) -> Weight
 
fn on_initialize(now: BlockNumberFor<T>) -> Weight
source§fn on_idle(_block: BlockNumberFor<T>, remaining_weight: Weight) -> Weight
 
fn on_idle(_block: BlockNumberFor<T>, remaining_weight: Weight) -> Weight
Hooks::on_finalize]). Read moresource§fn integrity_test()
 
fn integrity_test()
§fn on_finalize(_n: BlockNumber)
 
fn on_finalize(_n: BlockNumber)
§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)
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> PartialEq for Pallet<T>
 
impl<T> PartialEq for Pallet<T>
source§impl<T: Config> SafeModeNotify for Pallet<T>
 
impl<T: Config> SafeModeNotify for Pallet<T>
Implementation of the SafeModeNotify trait for the DappStaking pallet.
This integration ensures that the dApp staking protocol transitions to and from
maintenance mode when the runtime enters or exits safe mode.
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)§impl<T> Conv for T
 
impl<T> Conv for T
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<T> FmtForward for T
 
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
    Self: Binary,
 
fn fmt_binary(self) -> FmtBinary<Self>where
    Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
    Self: Display,
 
fn fmt_display(self) -> FmtDisplay<Self>where
    Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
    Self: LowerExp,
 
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
    Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
    Self: LowerHex,
 
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
    Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
    Self: Octal,
 
fn fmt_octal(self) -> FmtOctal<Self>where
    Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
    Self: Pointer,
 
fn fmt_pointer(self) -> FmtPointer<Self>where
    Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
    Self: UpperExp,
 
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
    Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
    Self: UpperHex,
 
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
    Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
    &'a Self: for<'a> IntoIterator,
 
fn fmt_list(self) -> FmtList<Self>where
    &'a Self: for<'a> IntoIterator,
§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<Src, Dest> IntoTuple<Dest> for Srcwhere
    Dest: FromTuple<Src>,
 
impl<Src, Dest> IntoTuple<Dest> for Srcwhere
    Dest: FromTuple<Src>,
fn into_tuple(self) -> Dest
§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> Pipe for Twhere
    T: ?Sized,
 
impl<T> Pipe for Twhere
    T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
    Self: Sized,
 
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
    Self: Sized,
§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,
self and passes that borrow into the pipe function. Read more§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,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
 
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
    &'a mut self,
    func: impl FnOnce(&'a mut B) -> R,
) -> R
 
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
 
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
 
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
 
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§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> Tap for T
 
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
 
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
 
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
 
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
 
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
 
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
 
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
 
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
 
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
 
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
 
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
 
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
 
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
 
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.§impl<T> TryConv for T
 
impl<T> TryConv for T
§impl<T, U> TryInto2<U> for Twhere
    U: TryFrom2<T>,
 
impl<T, U> TryInto2<U> for Twhere
    U: TryFrom2<T>,
§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.