Struct sp_trie::recorder::TrieRecorder
source · pub struct TrieRecorder<'a, H: Hasher> { /* private fields */ }
Expand description
The TrieRecorder
implementation.
Trait Implementations§
source§impl<'a, H: Hasher> TrieRecorder<<H as Hasher>::Out> for TrieRecorder<'a, H>
impl<'a, H: Hasher> TrieRecorder<<H as Hasher>::Out> for TrieRecorder<'a, H>
source§fn record(&mut self, access: TrieAccess<'_, H::Out>)
fn record(&mut self, access: TrieAccess<'_, H::Out>)
Record the given
TrieAccess
. Read moresource§fn trie_nodes_recorded_for_key(&self, key: &[u8]) -> RecordedForKey
fn trie_nodes_recorded_for_key(&self, key: &[u8]) -> RecordedForKey
Check if we have recorded any trie nodes for the given
key
. Read moreAuto Trait Implementations§
impl<'a, H> Freeze for TrieRecorder<'a, H>
impl<'a, H> !RefUnwindSafe for TrieRecorder<'a, H>
impl<'a, H> !Send for TrieRecorder<'a, H>
impl<'a, H> Sync for TrieRecorder<'a, H>
impl<'a, H> Unpin for TrieRecorder<'a, H>
impl<'a, H> !UnwindSafe for TrieRecorder<'a, H>
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
Mutably borrows from an owned value. Read more
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> 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>
Converts
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>
Converts
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 moresource§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
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
The counterpart to
unchecked_from
.