# 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>>`

Create new immutable instance of Trie.

#### `fn create<'db>(&self,
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>>`

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

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)