Trait triedb::TrieMut[][src]

pub trait TrieMut {
    fn root(&self) -> H256;
fn insert(&mut self, key: &[u8], value: &[u8]);
fn delete(&mut self, key: &[u8]);
fn get(&self, key: &[u8]) -> Option<Vec<u8>>; }
[]

Represents a trie that is mutable.

Required methods

fn root(&self) -> H256[src][]

Get the root hash of the current trie.

fn insert(&mut self, key: &[u8], value: &[u8])[src][]

Insert a value to the trie.

fn delete(&mut self, key: &[u8])[src][]

Delete a value in the trie.

fn get(&self, key: &[u8]) -> Option<Vec<u8>>[src][]

Get a value in the trie.

Implementors

impl TrieMut for MemoryTrieMut[src][+]

impl<'a, D: Database> TrieMut for DatabaseTrieMut<'a, D>[src][+]

impl<D: Borrow<DB>> TrieMut for RocksMemoryTrieMut<D>[src][+]