Struct pallet_grandpa_finality_verifier::pallet::Pallet
source · pub struct Pallet<T, I = ()>(pub PhantomData<(T, I)>);
Expand description
The Pallet
struct, the main type that implements traits and standalone
functions within the pallet.
Tuple Fields§
§0: PhantomData<(T, I)>
Implementations§
source§impl<T: Config<I>, I: 'static> Pallet<T, I>
impl<T: Config<I>, I: 'static> Pallet<T, I>
sourcepub fn submit_headers(
origin: OriginFor<T>,
range: Vec<BridgedHeader<T, I>>,
signed_header: BridgedHeader<T, I>,
justification: GrandpaJustification<BridgedHeader<T, I>>
) -> DispatchResultWithPostInfo
pub fn submit_headers( origin: OriginFor<T>, range: Vec<BridgedHeader<T, I>>, signed_header: BridgedHeader<T, I>, justification: GrandpaJustification<BridgedHeader<T, I>> ) -> DispatchResultWithPostInfo
Add a header range for the relaychain
It will use the underlying storage pallet to fetch information about the current authorities and best finalized header in order to verify that the header is finalized, and the corresponding range valid.
If successful in verification, it will write the target range to the underlying storage pallet.
If the new range was accepted, pays no fee.
pub fn reset(origin: OriginFor<T>) -> DispatchResultWithPostInfo
source§impl<T: Config<I>, I: 'static> Pallet<T, I>
impl<T: Config<I>, I: 'static> Pallet<T, I>
sourcepub fn get_initial_hash() -> Option<BridgedBlockHash<T, I>>
pub fn get_initial_hash() -> Option<BridgedBlockHash<T, I>>
“ Hash of the header used to bootstrap the pallet.“
source§impl<T: Config<I>, I: 'static> Pallet<T, I>
impl<T: Config<I>, I: 'static> Pallet<T, I>
sourcepub fn get_best_block_hash() -> Option<BridgedBlockHash<T, I>>
pub fn get_best_block_hash() -> Option<BridgedBlockHash<T, I>>
“ Hash of the best finalized header.“
source§impl<T: Config<I>, I: 'static> Pallet<T, I>
impl<T: Config<I>, I: 'static> Pallet<T, I>
sourcepub fn get_imported_hashes<KArg>(k: KArg) -> Option<BridgedBlockHash<T, I>>where
KArg: EncodeLike<u32>,
pub fn get_imported_hashes<KArg>(k: KArg) -> Option<BridgedBlockHash<T, I>>where KArg: EncodeLike<u32>,
“ A ring buffer of imported hashes. Ordered by the insertion time.“
source§impl<T: Config<I>, I: 'static> Pallet<T, I>
impl<T: Config<I>, I: 'static> Pallet<T, I>
sourcepub fn get_submissions_counter() -> BlockNumberFor<T>
pub fn get_submissions_counter() -> BlockNumberFor<T>
“ Count successful submissions.“
source§impl<T: Config<I>, I: 'static> Pallet<T, I>
impl<T: Config<I>, I: 'static> Pallet<T, I>
sourcepub fn get_imported_hashes_pointer() -> Option<u32>
pub fn get_imported_hashes_pointer() -> Option<u32>
“ Current ring buffer position.“
source§impl<T: Config<I>, I: 'static> Pallet<T, I>
impl<T: Config<I>, I: 'static> Pallet<T, I>
sourcepub fn get_imported_headers<KArg>(k: KArg) -> Option<BridgedHeader<T, I>>where
KArg: EncodeLike<BridgedBlockHash<T, I>>,
pub fn get_imported_headers<KArg>(k: KArg) -> Option<BridgedHeader<T, I>>where KArg: EncodeLike<BridgedBlockHash<T, I>>,
“ Headers which have been imported into the pallet.“
source§impl<T: Config<I>, I: 'static> Pallet<T, I>
impl<T: Config<I>, I: 'static> Pallet<T, I>
sourcepub fn ever_initialized() -> bool
pub fn ever_initialized() -> bool
“ If true, all pallet transactions are failed immediately.“
source§impl<T: Config<I>, I: 'static> Pallet<T, I>
impl<T: Config<I>, I: 'static> Pallet<T, I>
pub fn best_finalized_map() -> BridgedHeader<T, I>
sourcepub fn is_known_header(hash: BridgedBlockHash<T, I>) -> bool
pub fn is_known_header(hash: BridgedBlockHash<T, I>) -> bool
Check if a particular header is known to the bridge pallet.
sourcepub fn parse_finalized_storage_proof<R>(
hash: BridgedBlockHash<T, I>,
storage_proof: StorageProof,
parse: impl FnOnce(StorageProofChecker<BridgedBlockHasher<T, I>>) -> R
) -> Result<R, DispatchError>
pub fn parse_finalized_storage_proof<R>( hash: BridgedBlockHash<T, I>, storage_proof: StorageProof, parse: impl FnOnce(StorageProofChecker<BridgedBlockHasher<T, I>>) -> R ) -> Result<R, DispatchError>
Verify that the passed storage proof is valid, given it is crafted using
known finalized header. If the proof is valid, then the parse
callback
is called and the function returns its result.
pub fn initialize( origin: T::RuntimeOrigin, gateway_id: ChainId, encoded_registration_data: Vec<u8> ) -> DispatchResult
sourcepub fn set_owner(
origin: T::RuntimeOrigin,
_gateway_id: ChainId,
encoded_new_owner: Vec<u8>
) -> Result<(), &'static str>
pub fn set_owner( origin: T::RuntimeOrigin, _gateway_id: ChainId, encoded_new_owner: Vec<u8> ) -> Result<(), &'static str>
Change PalletOwner
.
May only be called either by root, or by PalletOwner
.
sourcepub fn set_operational(
origin: OriginFor<T>,
operational: bool
) -> Result<(), &'static str>
pub fn set_operational( origin: OriginFor<T>, operational: bool ) -> Result<(), &'static str>
Halt or resume all pallet operations.
May only be called either by root, or by PalletOwner
.
pub fn submit_encoded_headers( encoded_header_data: Vec<u8> ) -> Result<(), DispatchError>
pub fn check_vm_source( source: ExecutionSource, message: Vec<u8> ) -> Result<VMSource, DispatchError>
pub fn confirm_event_inclusion( gateway_id: ChainId, encoded_inclusion_proof: Vec<u8>, maybe_source: Option<ExecutionSource> ) -> Result<InclusionReceipt<BlockNumberFor<T>>, DispatchError>
pub fn get_latest_finalized_header() -> Option<Vec<u8>>
Trait Implementations§
source§impl From<<Pallet<TestRuntime, ()> as Callable<TestRuntime>>::RuntimeCall> for RuntimeCall
impl From<<Pallet<TestRuntime, ()> as Callable<TestRuntime>>::RuntimeCall> for RuntimeCall
source§fn from(call: CallableCallFor<GrandpaFinalityVerifier, TestRuntime>) -> Self
fn from(call: CallableCallFor<GrandpaFinalityVerifier, TestRuntime>) -> Self
source§impl From<<Pallet<TestRuntime, Instance1> as Callable<TestRuntime>>::RuntimeCall> for RuntimeCall
impl From<<Pallet<TestRuntime, Instance1> as Callable<TestRuntime>>::RuntimeCall> for RuntimeCall
source§fn from(call: CallableCallFor<PolkadotBridge, TestRuntime>) -> Self
fn from(call: CallableCallFor<PolkadotBridge, TestRuntime>) -> Self
source§impl From<<Pallet<TestRuntime, Instance2> as Callable<TestRuntime>>::RuntimeCall> for RuntimeCall
impl From<<Pallet<TestRuntime, Instance2> as Callable<TestRuntime>>::RuntimeCall> for RuntimeCall
source§fn from(call: CallableCallFor<KusamaBridge, TestRuntime>) -> Self
fn from(call: CallableCallFor<KusamaBridge, TestRuntime>) -> Self
source§impl<T: Config<I>, I: 'static> GetStorageVersion for Pallet<T, I>
impl<T: Config<I>, I: 'static> GetStorageVersion for Pallet<T, I>
§type CurrentStorageVersion = NoStorageVersionSet
type CurrentStorageVersion = NoStorageVersionSet
source§fn current_storage_version() -> Self::CurrentStorageVersion
fn current_storage_version() -> Self::CurrentStorageVersion
source§fn on_chain_storage_version() -> StorageVersion
fn on_chain_storage_version() -> StorageVersion
source§impl<T: Config<I>, I: 'static> Hooks<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T, I>
impl<T: Config<I>, I: 'static> Hooks<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T, I>
§fn on_finalize(_n: BlockNumber)
fn on_finalize(_n: BlockNumber)
§fn on_idle(_n: BlockNumber, _remaining_weight: Weight) -> Weight
fn on_idle(_n: BlockNumber, _remaining_weight: Weight) -> Weight
on_finalize
). Read more§fn on_initialize(_n: BlockNumber) -> Weight
fn on_initialize(_n: BlockNumber) -> Weight
§fn on_runtime_upgrade() -> Weight
fn on_runtime_upgrade() -> Weight
§fn offchain_worker(_n: BlockNumber)
fn offchain_worker(_n: BlockNumber)
§fn integrity_test()
fn integrity_test()
source§impl<T: Config<I>, I: 'static> IntegrityTest for Pallet<T, I>
impl<T: Config<I>, I: 'static> IntegrityTest for Pallet<T, I>
source§fn integrity_test()
fn integrity_test()
source§impl IsSubType<<Pallet<TestRuntime, ()> as Callable<TestRuntime>>::RuntimeCall> for RuntimeCall
impl IsSubType<<Pallet<TestRuntime, ()> as Callable<TestRuntime>>::RuntimeCall> for RuntimeCall
source§fn is_sub_type(
&self
) -> Option<&CallableCallFor<GrandpaFinalityVerifier, TestRuntime>>
fn is_sub_type( &self ) -> Option<&CallableCallFor<GrandpaFinalityVerifier, TestRuntime>>
Some(_)
if self
is an instance of sub type T
.source§impl IsSubType<<Pallet<TestRuntime, Instance1> as Callable<TestRuntime>>::RuntimeCall> for RuntimeCall
impl IsSubType<<Pallet<TestRuntime, Instance1> as Callable<TestRuntime>>::RuntimeCall> for RuntimeCall
source§fn is_sub_type(&self) -> Option<&CallableCallFor<PolkadotBridge, TestRuntime>>
fn is_sub_type(&self) -> Option<&CallableCallFor<PolkadotBridge, TestRuntime>>
Some(_)
if self
is an instance of sub type T
.source§impl IsSubType<<Pallet<TestRuntime, Instance2> as Callable<TestRuntime>>::RuntimeCall> for RuntimeCall
impl IsSubType<<Pallet<TestRuntime, Instance2> as Callable<TestRuntime>>::RuntimeCall> for RuntimeCall
source§fn is_sub_type(&self) -> Option<&CallableCallFor<KusamaBridge, TestRuntime>>
fn is_sub_type(&self) -> Option<&CallableCallFor<KusamaBridge, TestRuntime>>
Some(_)
if self
is an instance of sub type T
.source§impl<T: Config<I>, I: 'static> LightClient<T> for Pallet<T, I>
impl<T: Config<I>, I: 'static> LightClient<T> for Pallet<T, I>
fn get_latest_finalized_header(&self) -> HeaderResult
fn get_fast_height(&self) -> HeightResult<BlockNumberFor<T>>
fn get_rational_height(&self) -> HeightResult<BlockNumberFor<T>>
fn get_finalized_height(&self) -> HeightResult<BlockNumberFor<T>>
fn get_latest_finalized_header_precompile(&self) -> Bytes
fn get_fast_height_precompile(&self) -> BlockNumberFor<T>
fn get_rational_height_precompile(&self) -> BlockNumberFor<T>
fn get_finalized_height_precompile(&self) -> BlockNumberFor<T>
fn get_latest_heartbeat(&self) -> Result<LightClientHeartbeat<T>, DispatchError>
fn initialize( &self, origin: OriginFor<T>, gateway_id: [u8; 4], encoded_registration_data: Bytes ) -> Result<(), DispatchError>
fn turn_on(&self, origin: OriginFor<T>) -> Result<bool, DispatchError>
fn turn_off(&self, origin: OriginFor<T>) -> Result<bool, DispatchError>
fn submit_encoded_headers(&self, headers: Bytes) -> Result<bool, DispatchError>
fn verify_event_inclusion( &self, gateway_id: [u8; 4], _speed_mode: SpeedMode, source: Option<ExecutionSource>, message: Bytes ) -> Result<InclusionReceipt<BlockNumberFor<T>>, DispatchError>
fn verify_state_inclusion( &self, _gateway_id: [u8; 4], _speed_mode: SpeedMode, _message: Bytes ) -> Result<InclusionReceipt<BlockNumberFor<T>>, DispatchError>
fn verify_tx_inclusion( &self, _gateway_id: [u8; 4], _speed_mode: SpeedMode, _message: Bytes ) -> Result<InclusionReceipt<BlockNumberFor<T>>, DispatchError>
fn verify_event_inclusion_precompile( &self, gateway_id: [u8; 4], _speed_mode: SpeedMode, source: ExecutionSource, message: Bytes ) -> Result<Bytes, DispatchError>
fn verify_state_inclusion_precompile( &self, _gateway_id: [u8; 4], _speed_mode: SpeedMode, _message: Bytes ) -> Result<Bytes, DispatchError>
fn verify_tx_inclusion_precompile( &self, _gateway_id: [u8; 4], _speed_mode: SpeedMode, _message: Bytes ) -> Result<Bytes, DispatchError>
source§impl<T: Config<I>, I: 'static> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T, I>
impl<T: Config<I>, I: 'static> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T, I>
source§fn offchain_worker(n: BlockNumberFor<T>)
fn offchain_worker(n: BlockNumberFor<T>)
source§impl<T: Config<I>, I: 'static> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T, I>
impl<T: Config<I>, I: 'static> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T, I>
source§fn on_finalize(n: BlockNumberFor<T>)
fn on_finalize(n: BlockNumberFor<T>)
source§impl<T: Config<I>, I: 'static> OnGenesis for Pallet<T, I>
impl<T: Config<I>, I: 'static> OnGenesis for Pallet<T, I>
source§fn on_genesis()
fn on_genesis()
source§impl<T: Config<I>, I: 'static> OnIdle<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T, I>
impl<T: Config<I>, I: 'static> OnIdle<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T, I>
source§impl<T: Config<I>, I: 'static> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T, I>
impl<T: Config<I>, I: 'static> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T, I>
source§fn on_initialize(n: BlockNumberFor<T>) -> Weight
fn on_initialize(n: BlockNumberFor<T>) -> Weight
source§impl<T: Config<I>, I: 'static> OnRuntimeUpgrade for Pallet<T, I>
impl<T: Config<I>, I: 'static> OnRuntimeUpgrade for Pallet<T, I>
source§fn on_runtime_upgrade() -> Weight
fn on_runtime_upgrade() -> Weight
source§impl<T: Config<I>, I: 'static> PalletInfoAccess for Pallet<T, I>
impl<T: Config<I>, I: 'static> PalletInfoAccess for Pallet<T, I>
source§fn module_name() -> &'static str
fn module_name() -> &'static str
source§fn crate_version() -> CrateVersion
fn crate_version() -> CrateVersion
source§impl<T, I> PartialEq<Pallet<T, I>> for Pallet<T, I>
impl<T, I> PartialEq<Pallet<T, I>> for Pallet<T, I>
source§impl<T: Config<I>, I: 'static> StorageInfoTrait for Pallet<T, I>
impl<T: Config<I>, I: 'static> StorageInfoTrait for Pallet<T, I>
fn storage_info() -> Vec<StorageInfo>
source§impl<T: Config<I>, I: 'static> WhitelistedStorageKeys for Pallet<T, I>
impl<T: Config<I>, I: 'static> WhitelistedStorageKeys for Pallet<T, I>
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, I> Eq for Pallet<T, I>
Auto Trait Implementations§
impl<T, I> RefUnwindSafe for Pallet<T, I>where I: RefUnwindSafe, T: RefUnwindSafe,
impl<T, I> Send for Pallet<T, I>where I: Send, T: Send,
impl<T, I> Sync for Pallet<T, I>where I: Sync, T: Sync,
impl<T, I> Unpin for Pallet<T, I>where I: Unpin, T: Unpin,
impl<T, I> UnwindSafe for Pallet<T, I>where I: UnwindSafe, 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>,
§impl<T> Conv for T
impl<T> Conv for T
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.§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,
§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,
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>
§impl<T> IsType<T> for T
impl<T> IsType<T> 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) -> 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,
§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,
§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.§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.§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)) -> 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 more§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 more§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 more§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 more§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 more§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 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)) -> 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.§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.§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.§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.§impl<T> TryConv for T
impl<T> TryConv for T
§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 Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere T: Bounded, S: TryInto<T>,
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.