Enum parachain_staking::pallet::Call
source · pub enum Call<T: Config> {
Show 27 variants
set_total_selected {
new: u32,
},
set_collator_commission {
new: Perbill,
},
join_candidates {
bond: BalanceOf<T>,
liquidity_token: CurrencyIdOf<T>,
use_balance_from: Option<BondKind>,
candidate_count: u32,
liquidity_token_count: u32,
},
schedule_leave_candidates {
candidate_count: u32,
},
execute_leave_candidates {
candidate: T::AccountId,
candidate_delegation_count: u32,
},
cancel_leave_candidates {
candidate_count: u32,
},
go_offline {},
go_online {},
schedule_candidate_bond_more {
more: BalanceOf<T>,
use_balance_from: Option<BondKind>,
},
schedule_candidate_bond_less {
less: BalanceOf<T>,
},
execute_candidate_bond_request {
candidate: T::AccountId,
use_balance_from: Option<BondKind>,
},
cancel_candidate_bond_request {},
delegate {
collator: T::AccountId,
amount: BalanceOf<T>,
use_balance_from: Option<BondKind>,
candidate_delegation_count: u32,
delegation_count: u32,
},
schedule_leave_delegators {},
execute_leave_delegators {
delegator: T::AccountId,
delegation_count: u32,
},
cancel_leave_delegators {},
schedule_revoke_delegation {
collator: T::AccountId,
},
schedule_delegator_bond_more {
candidate: T::AccountId,
more: BalanceOf<T>,
use_balance_from: Option<BondKind>,
},
schedule_delegator_bond_less {
candidate: T::AccountId,
less: BalanceOf<T>,
},
execute_delegation_request {
delegator: T::AccountId,
candidate: T::AccountId,
use_balance_from: Option<BondKind>,
},
cancel_delegation_request {
candidate: T::AccountId,
},
add_staking_liquidity_token {
paired_or_liquidity_token: PairedOrLiquidityToken<CurrencyIdOf<T>>,
current_liquidity_tokens: u32,
},
remove_staking_liquidity_token {
paired_or_liquidity_token: PairedOrLiquidityToken<CurrencyIdOf<T>>,
current_liquidity_tokens: u32,
},
aggregator_update_metadata {
collator_candidates: Vec<T::AccountId>,
action: MetadataUpdateAction,
},
update_candidate_aggregator {
maybe_aggregator: Option<T::AccountId>,
},
payout_collator_rewards {
collator: T::AccountId,
number_of_sesisons: Option<u32>,
},
payout_delegator_reward {
round: u32,
collator: T::AccountId,
delegator: T::AccountId,
},
// some variants omitted
}
Expand description
Contains a variant per dispatchable extrinsic that this pallet has.
Variants§
set_total_selected
set_collator_commission
join_candidates
Fields
liquidity_token: CurrencyIdOf<T>
schedule_leave_candidates
execute_leave_candidates
cancel_leave_candidates
go_offline
Fields
See Pallet::go_offline
.
go_online
Fields
See Pallet::go_online
.
schedule_candidate_bond_more
schedule_candidate_bond_less
execute_candidate_bond_request
cancel_candidate_bond_request
Fields
delegate
Fields
See Pallet::delegate
.
schedule_leave_delegators
Fields
execute_leave_delegators
cancel_leave_delegators
Fields
schedule_revoke_delegation
schedule_delegator_bond_more
schedule_delegator_bond_less
execute_delegation_request
cancel_delegation_request
add_staking_liquidity_token
Fields
paired_or_liquidity_token: PairedOrLiquidityToken<CurrencyIdOf<T>>
remove_staking_liquidity_token
Fields
paired_or_liquidity_token: PairedOrLiquidityToken<CurrencyIdOf<T>>
aggregator_update_metadata
update_candidate_aggregator
payout_collator_rewards
payout_delegator_reward
Implementations§
source§impl<T: Config> Call<T>
impl<T: Config> Call<T>
sourcepub fn new_call_variant_set_total_selected(new: u32) -> Self
pub fn new_call_variant_set_total_selected(new: u32) -> Self
Create a call with the variant set_total_selected
.
sourcepub fn new_call_variant_set_collator_commission(new: Perbill) -> Self
pub fn new_call_variant_set_collator_commission(new: Perbill) -> Self
Create a call with the variant set_collator_commission
.
sourcepub fn new_call_variant_join_candidates(
bond: BalanceOf<T>,
liquidity_token: CurrencyIdOf<T>,
use_balance_from: Option<BondKind>,
candidate_count: u32,
liquidity_token_count: u32
) -> Self
pub fn new_call_variant_join_candidates( bond: BalanceOf<T>, liquidity_token: CurrencyIdOf<T>, use_balance_from: Option<BondKind>, candidate_count: u32, liquidity_token_count: u32 ) -> Self
Create a call with the variant join_candidates
.
sourcepub fn new_call_variant_schedule_leave_candidates(candidate_count: u32) -> Self
pub fn new_call_variant_schedule_leave_candidates(candidate_count: u32) -> Self
Create a call with the variant schedule_leave_candidates
.
sourcepub fn new_call_variant_execute_leave_candidates(
candidate: T::AccountId,
candidate_delegation_count: u32
) -> Self
pub fn new_call_variant_execute_leave_candidates( candidate: T::AccountId, candidate_delegation_count: u32 ) -> Self
Create a call with the variant execute_leave_candidates
.
sourcepub fn new_call_variant_cancel_leave_candidates(candidate_count: u32) -> Self
pub fn new_call_variant_cancel_leave_candidates(candidate_count: u32) -> Self
Create a call with the variant cancel_leave_candidates
.
sourcepub fn new_call_variant_go_offline() -> Self
pub fn new_call_variant_go_offline() -> Self
Create a call with the variant go_offline
.
sourcepub fn new_call_variant_go_online() -> Self
pub fn new_call_variant_go_online() -> Self
Create a call with the variant go_online
.
sourcepub fn new_call_variant_schedule_candidate_bond_more(
more: BalanceOf<T>,
use_balance_from: Option<BondKind>
) -> Self
pub fn new_call_variant_schedule_candidate_bond_more( more: BalanceOf<T>, use_balance_from: Option<BondKind> ) -> Self
Create a call with the variant schedule_candidate_bond_more
.
sourcepub fn new_call_variant_schedule_candidate_bond_less(less: BalanceOf<T>) -> Self
pub fn new_call_variant_schedule_candidate_bond_less(less: BalanceOf<T>) -> Self
Create a call with the variant schedule_candidate_bond_less
.
sourcepub fn new_call_variant_execute_candidate_bond_request(
candidate: T::AccountId,
use_balance_from: Option<BondKind>
) -> Self
pub fn new_call_variant_execute_candidate_bond_request( candidate: T::AccountId, use_balance_from: Option<BondKind> ) -> Self
Create a call with the variant execute_candidate_bond_request
.
sourcepub fn new_call_variant_cancel_candidate_bond_request() -> Self
pub fn new_call_variant_cancel_candidate_bond_request() -> Self
Create a call with the variant cancel_candidate_bond_request
.
sourcepub fn new_call_variant_delegate(
collator: T::AccountId,
amount: BalanceOf<T>,
use_balance_from: Option<BondKind>,
candidate_delegation_count: u32,
delegation_count: u32
) -> Self
pub fn new_call_variant_delegate( collator: T::AccountId, amount: BalanceOf<T>, use_balance_from: Option<BondKind>, candidate_delegation_count: u32, delegation_count: u32 ) -> Self
Create a call with the variant delegate
.
sourcepub fn new_call_variant_schedule_leave_delegators() -> Self
pub fn new_call_variant_schedule_leave_delegators() -> Self
Create a call with the variant schedule_leave_delegators
.
sourcepub fn new_call_variant_execute_leave_delegators(
delegator: T::AccountId,
delegation_count: u32
) -> Self
pub fn new_call_variant_execute_leave_delegators( delegator: T::AccountId, delegation_count: u32 ) -> Self
Create a call with the variant execute_leave_delegators
.
sourcepub fn new_call_variant_cancel_leave_delegators() -> Self
pub fn new_call_variant_cancel_leave_delegators() -> Self
Create a call with the variant cancel_leave_delegators
.
sourcepub fn new_call_variant_schedule_revoke_delegation(
collator: T::AccountId
) -> Self
pub fn new_call_variant_schedule_revoke_delegation( collator: T::AccountId ) -> Self
Create a call with the variant schedule_revoke_delegation
.
sourcepub fn new_call_variant_schedule_delegator_bond_more(
candidate: T::AccountId,
more: BalanceOf<T>,
use_balance_from: Option<BondKind>
) -> Self
pub fn new_call_variant_schedule_delegator_bond_more( candidate: T::AccountId, more: BalanceOf<T>, use_balance_from: Option<BondKind> ) -> Self
Create a call with the variant schedule_delegator_bond_more
.
sourcepub fn new_call_variant_schedule_delegator_bond_less(
candidate: T::AccountId,
less: BalanceOf<T>
) -> Self
pub fn new_call_variant_schedule_delegator_bond_less( candidate: T::AccountId, less: BalanceOf<T> ) -> Self
Create a call with the variant schedule_delegator_bond_less
.
sourcepub fn new_call_variant_execute_delegation_request(
delegator: T::AccountId,
candidate: T::AccountId,
use_balance_from: Option<BondKind>
) -> Self
pub fn new_call_variant_execute_delegation_request( delegator: T::AccountId, candidate: T::AccountId, use_balance_from: Option<BondKind> ) -> Self
Create a call with the variant execute_delegation_request
.
sourcepub fn new_call_variant_cancel_delegation_request(
candidate: T::AccountId
) -> Self
pub fn new_call_variant_cancel_delegation_request( candidate: T::AccountId ) -> Self
Create a call with the variant cancel_delegation_request
.
sourcepub fn new_call_variant_add_staking_liquidity_token(
paired_or_liquidity_token: PairedOrLiquidityToken<CurrencyIdOf<T>>,
current_liquidity_tokens: u32
) -> Self
pub fn new_call_variant_add_staking_liquidity_token( paired_or_liquidity_token: PairedOrLiquidityToken<CurrencyIdOf<T>>, current_liquidity_tokens: u32 ) -> Self
Create a call with the variant add_staking_liquidity_token
.
sourcepub fn new_call_variant_remove_staking_liquidity_token(
paired_or_liquidity_token: PairedOrLiquidityToken<CurrencyIdOf<T>>,
current_liquidity_tokens: u32
) -> Self
pub fn new_call_variant_remove_staking_liquidity_token( paired_or_liquidity_token: PairedOrLiquidityToken<CurrencyIdOf<T>>, current_liquidity_tokens: u32 ) -> Self
Create a call with the variant remove_staking_liquidity_token
.
sourcepub fn new_call_variant_aggregator_update_metadata(
collator_candidates: Vec<T::AccountId>,
action: MetadataUpdateAction
) -> Self
pub fn new_call_variant_aggregator_update_metadata( collator_candidates: Vec<T::AccountId>, action: MetadataUpdateAction ) -> Self
Create a call with the variant aggregator_update_metadata
.
sourcepub fn new_call_variant_update_candidate_aggregator(
maybe_aggregator: Option<T::AccountId>
) -> Self
pub fn new_call_variant_update_candidate_aggregator( maybe_aggregator: Option<T::AccountId> ) -> Self
Create a call with the variant update_candidate_aggregator
.
sourcepub fn new_call_variant_payout_collator_rewards(
collator: T::AccountId,
number_of_sesisons: Option<u32>
) -> Self
pub fn new_call_variant_payout_collator_rewards( collator: T::AccountId, number_of_sesisons: Option<u32> ) -> Self
Create a call with the variant payout_collator_rewards
.
sourcepub fn new_call_variant_payout_delegator_reward(
round: u32,
collator: T::AccountId,
delegator: T::AccountId
) -> Self
pub fn new_call_variant_payout_delegator_reward( round: u32, collator: T::AccountId, delegator: T::AccountId ) -> Self
Create a call with the variant payout_delegator_reward
.
Trait Implementations§
source§impl<T: Config> Decode for Call<T>
impl<T: Config> Decode for Call<T>
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>where I: Input,
source§impl<T: Config> Encode for Call<T>
impl<T: Config> Encode for Call<T>
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
source§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
source§impl<T: Config> GetCallIndex for Call<T>
impl<T: Config> GetCallIndex for Call<T>
source§fn get_call_index(&self) -> u8
fn get_call_index(&self) -> u8
source§fn get_call_indices() -> &'static [u8] ⓘ
fn get_call_indices() -> &'static [u8] ⓘ
GetCallName
.source§impl<T: Config> GetCallName for Call<T>
impl<T: Config> GetCallName for Call<T>
source§fn get_call_name(&self) -> &'static str
fn get_call_name(&self) -> &'static str
source§fn get_call_names() -> &'static [&'static str]
fn get_call_names() -> &'static [&'static str]
GetCallIndex
.source§impl<T: Config> GetDispatchInfo for Call<T>
impl<T: Config> GetDispatchInfo for Call<T>
source§fn get_dispatch_info(&self) -> DispatchInfo
fn get_dispatch_info(&self) -> DispatchInfo
DispatchInfo
, containing relevant information of this dispatch. Read moresource§impl<T: Config> PartialEq<Call<T>> for Call<T>
impl<T: Config> PartialEq<Call<T>> for Call<T>
source§impl<T> TypeInfo for Call<T>where
PhantomData<(T,)>: TypeInfo + 'static,
BalanceOf<T>: TypeInfo + 'static,
CurrencyIdOf<T>: TypeInfo + 'static,
T::AccountId: TypeInfo + 'static,
PairedOrLiquidityToken<CurrencyIdOf<T>>: TypeInfo + 'static,
Vec<T::AccountId>: TypeInfo + 'static,
Option<T::AccountId>: TypeInfo + 'static,
T: Config + 'static,
impl<T> TypeInfo for Call<T>where PhantomData<(T,)>: TypeInfo + 'static, BalanceOf<T>: TypeInfo + 'static, CurrencyIdOf<T>: TypeInfo + 'static, T::AccountId: TypeInfo + 'static, PairedOrLiquidityToken<CurrencyIdOf<T>>: TypeInfo + 'static, Vec<T::AccountId>: TypeInfo + 'static, Option<T::AccountId>: TypeInfo + 'static, T: Config + 'static,
source§impl<T: Config> UnfilteredDispatchable for Call<T>
impl<T: Config> UnfilteredDispatchable for Call<T>
§type RuntimeOrigin = <T as Config>::RuntimeOrigin
type RuntimeOrigin = <T as Config>::RuntimeOrigin
frame_system::Config::RuntimeOrigin
).source§fn dispatch_bypass_filter(
self,
origin: Self::RuntimeOrigin
) -> DispatchResultWithPostInfo
fn dispatch_bypass_filter( self, origin: Self::RuntimeOrigin ) -> DispatchResultWithPostInfo
impl<T: Config> EncodeLike<Call<T>> for Call<T>
impl<T: Config> Eq for Call<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Call<T>where T: RefUnwindSafe, <T as Config>::AccountId: RefUnwindSafe, <<T as Config>::Currency as MultiTokenCurrency<<T as Config>::AccountId>>::Balance: RefUnwindSafe, <<T as Config>::Currency as MultiTokenCurrency<<T as Config>::AccountId>>::CurrencyId: RefUnwindSafe,
impl<T> Send for Call<T>where T: Send, <<T as Config>::Currency as MultiTokenCurrency<<T as Config>::AccountId>>::Balance: Send, <<T as Config>::Currency as MultiTokenCurrency<<T as Config>::AccountId>>::CurrencyId: Send,
impl<T> Sync for Call<T>where T: Sync, <<T as Config>::Currency as MultiTokenCurrency<<T as Config>::AccountId>>::Balance: Sync, <<T as Config>::Currency as MultiTokenCurrency<<T as Config>::AccountId>>::CurrencyId: Sync,
impl<T> Unpin for Call<T>where T: Unpin, <T as Config>::AccountId: Unpin, <<T as Config>::Currency as MultiTokenCurrency<<T as Config>::AccountId>>::Balance: Unpin, <<T as Config>::Currency as MultiTokenCurrency<<T as Config>::AccountId>>::CurrencyId: Unpin,
impl<T> UnwindSafe for Call<T>where T: UnwindSafe, <T as Config>::AccountId: UnwindSafe, <<T as Config>::Currency as MultiTokenCurrency<<T as Config>::AccountId>>::Balance: UnwindSafe, <<T as Config>::Currency as MultiTokenCurrency<<T as Config>::AccountId>>::CurrencyId: 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
source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere T: Decode,
source§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
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,
self
to use its Binary
implementation when Debug
-formatted.source§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.source§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.source§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.source§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.source§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.source§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.source§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.source§impl<T> Hashable for Twhere
T: Codec,
impl<T> Hashable for Twhere T: Codec,
fn blake2_128(&self) -> [u8; 16]
fn blake2_256(&self) -> [u8; 32]
fn blake2_128_concat(&self) -> Vec<u8, Global> ⓘ
fn twox_128(&self) -> [u8; 16]
fn twox_256(&self) -> [u8; 32]
fn twox_64_concat(&self) -> Vec<u8, Global> ⓘ
fn identity(&self) -> Vec<u8, Global> ⓘ
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<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,
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,
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,
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,
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,
self
, then passes self.as_mut()
into the pipe
function.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>,
T
. Read moresource§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,
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,
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,
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,
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,
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,
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
.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
.tap_mut()
only in debug builds, and is erased in release
builds.source§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,
.tap_borrow()
only in debug builds, and is erased in release
builds.source§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,
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.source§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,
.tap_ref()
only in debug builds, and is erased in release
builds.source§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,
.tap_ref_mut()
only in debug builds, and is erased in release
builds.source§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
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
T
.