Struct sp_trie::Layout [−][src]
pub struct Layout<H>(_);
Expand description
substrate trie layout
Trait Implementations
Determines a trie root given its ordered contents, closed form.
Determines a trie root node’s data given its ordered contents, closed form.
Encoding of index as a key (when reusing general trie for indexed trie). Read more
Operation to build a trie db from its ordered iterator over its key/values.
fn ordered_trie_root<I, A>(input: I) -> <Self::Hash as Hasher>::Out where
I: IntoIterator<Item = A>,
A: AsRef<[u8]>,
fn ordered_trie_root<I, A>(input: I) -> <Self::Hash as Hasher>::Out where
I: IntoIterator<Item = A>,
A: AsRef<[u8]>,
A trie root formed from the items, with keys attached according to their
compact-encoded index (using parity-codec
crate). Read more
Auto Trait Implementations
impl<H> RefUnwindSafe for Layout<H> where
H: RefUnwindSafe,
impl<H> UnwindSafe for Layout<H> where
H: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The counterpart to unchecked_from
.
pub fn vzip(self) -> V