Struct trie_db::TrieFactory [−][src]
pub struct TrieFactory<L: TrieLayout> { /* fields omitted */ }
Expand description
Trie factory.
Implementations
Create new immutable instance of Trie.
pub fn create(
&self,
db: &'db mut dyn HashDB<L::Hash, DBValue>,
root: &'db mut TrieHash<L>
) -> Box<dyn TrieMut<L> + 'db>ⓘNotable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
pub fn create(
&self,
db: &'db mut dyn HashDB<L::Hash, DBValue>,
root: &'db mut TrieHash<L>
) -> Box<dyn TrieMut<L> + 'db>ⓘNotable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
Create new mutable instance of Trie.
Create new mutable instance of trie and check for errors.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<L> RefUnwindSafe for TrieFactory<L> where
L: RefUnwindSafe,
impl<L> Send for TrieFactory<L> where
L: Send,
impl<L> Sync for TrieFactory<L> where
L: Sync,
impl<L> Unpin for TrieFactory<L> where
L: Unpin,
impl<L> UnwindSafe for TrieFactory<L> where
L: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more