Struct ethcore_util::trie::TrieFactory
[−]
[src]
pub struct TrieFactory { /* fields omitted */ }
Trie factory.
Methods
impl TrieFactory
[src]
fn new(spec: TrieSpec) -> Self
Creates new factory.
fn readonly<'db>(&self,
db: &'db HashDB,
root: &'db H256)
-> Result<TrieKinds<'db>>
db: &'db HashDB,
root: &'db H256)
-> Result<TrieKinds<'db>>
Create new immutable instance of Trie.
fn create<'db>(&self,
db: &'db mut HashDB,
root: &'db mut H256)
-> Box<TrieMut + 'db>
db: &'db mut HashDB,
root: &'db mut H256)
-> Box<TrieMut + 'db>
Create new mutable instance of Trie.
fn from_existing<'db>(&self,
db: &'db mut HashDB,
root: &'db mut H256)
-> Result<Box<TrieMut + 'db>>
db: &'db mut HashDB,
root: &'db mut H256)
-> Result<Box<TrieMut + 'db>>
Create new mutable instance of trie and check for errors.
fn is_fat(&self) -> bool
Returns true iff the trie DB is a fat DB (allows enumeration of keys).
Trait Implementations
impl Default for TrieFactory
[src]
fn default() -> TrieFactory
Returns the "default value" for a type. Read more
impl Clone for TrieFactory
[src]
fn clone(&self) -> TrieFactory
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more