Struct sp_state_machine::LayoutV0
source · pub struct LayoutV0<H>(/* private fields */);
Expand description
substrate trie layout
Trait Implementations§
source§impl<H> TrieConfiguration for LayoutV0<H>where
H: Hasher,
impl<H> TrieConfiguration for LayoutV0<H>where
H: Hasher,
source§fn trie_root<I, A, B>(
input: I,
) -> <<LayoutV0<H> as TrieLayout>::Hash as Hasher>::Out
fn trie_root<I, A, B>( input: I, ) -> <<LayoutV0<H> as TrieLayout>::Hash as Hasher>::Out
Determines a trie root given its ordered contents, closed form.
source§fn trie_root_unhashed<I, A, B>(input: I) -> Vec<u8> ⓘ
fn trie_root_unhashed<I, A, B>(input: I) -> Vec<u8> ⓘ
Determines a trie root node’s data given its ordered contents, closed form.
source§fn encode_index(input: u32) -> Vec<u8> ⓘ
fn encode_index(input: u32) -> Vec<u8> ⓘ
Encoding of index as a key (when reusing general trie for
indexed trie).
source§fn trie_build<DB, I, A, B>(db: &mut DB, input: I) -> <Self::Hash as Hasher>::Out
fn trie_build<DB, I, A, B>(db: &mut DB, input: I) -> <Self::Hash as Hasher>::Out
Operation to build a trie db from its ordered iterator over its key/values.
source§impl<H> TrieLayout for LayoutV0<H>where
H: Hasher,
impl<H> TrieLayout for LayoutV0<H>where
H: Hasher,
source§const USE_EXTENSION: bool = false
const USE_EXTENSION: bool = false
If true, the trie will use extension nodes and
no partial in branch, if false the trie will only
use branch and node with partials in both.
source§const ALLOW_EMPTY: bool = true
const ALLOW_EMPTY: bool = true
If true, the trie will allow empty values into
TrieDBMut
source§const MAX_INLINE_VALUE: Option<u32> = None
const MAX_INLINE_VALUE: Option<u32> = None
Threshold above which an external node should be
use to store a node value.
Auto Trait Implementations§
impl<H> Freeze for LayoutV0<H>
impl<H> RefUnwindSafe for LayoutV0<H>where
H: RefUnwindSafe,
impl<H> Send for LayoutV0<H>where
H: Send,
impl<H> Sync for LayoutV0<H>where
H: Sync,
impl<H> Unpin for LayoutV0<H>where
H: Unpin,
impl<H> UnwindSafe for LayoutV0<H>where
H: 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
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
.