# Struct ethcore_util::trie::recorder::Recorder [−] [src]

    pub struct Recorder { /* fields omitted */ }

Records trie nodes as they pass it.

## Methods

### `impl Recorder`
[src]

#### `fn new() -> Self`

Create a new `Recorder` which records all given nodes.

#### `fn with_depth(depth: u32) -> Self`

Create a `Recorder` which only records nodes beyond a given depth.

#### `fn record(&mut self, hash: &H256, data: &[u8], depth: u32)`

Record a visited node, given its hash, data, and depth.

#### `fn drain(&mut self) -> Vec<Record>`

Drain all visited records.

## Trait Implementations

### `impl Debug for Recorder`
[src]

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result`

Formats the value using the given formatter.

### `impl Default for Recorder`
[src]

#### `fn default() -> Self`

Returns the "default value" for a type. Read more

### `impl<'a> Query for &'a mut Recorder`
[src]

#### `type Item = DBValue`

Output item.

#### `fn decode(self, value: &[u8]) -> DBValue`

Decode a byte-slice into the desired item.

#### `fn record(&mut self, hash: &H256, data: &[u8], depth: u32)`

Record that a node has been passed through.

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