Struct trie::Change [] [src]

pub struct Change {
    pub adds: HashMap<H256, Vec<u8>>,
    pub removes: HashSet<H256>,
}

Change for a merkle trie operation.

Fields

Additions to the database.

Removals to the database.

Methods

impl Change
[src]

[src]

Change to add a new raw value.

[src]

Change to add a new node.

[src]

Change to add a new node, and return the value added.

[src]

Change to remove a raw key.

[src]

Change to remove a node. Return whether there's any node being removed.

[src]

Merge another change to this change.

Trait Implementations

impl Default for Change
[src]

[src]

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