Struct trie_db::TrieFactory
source · [−]pub struct TrieFactory<L: TrieLayout> { /* private fields */ }
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>ⓘimpl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
pub fn create(
&self,
db: &'db mut dyn HashDB<L::Hash, DBValue>,
root: &'db mut TrieHash<L>
) -> Box<dyn TrieMut<L> + 'db>ⓘimpl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
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