Struct trie::Trie
[−]
[src]
pub struct Trie<D: DatabaseGuard> { /* fields omitted */ }
Methods
impl<D: DatabaseGuard> Trie<D>
[src]
fn empty(database: D) -> Self
fn existing(database: D, root: H256) -> Self
fn root(&self) -> H256
fn is_empty(&self) -> bool
fn get<K: Encodable, V: Decodable>(&self, key: &K) -> Option<V>
fn insert<K: Encodable, V: Encodable>(&mut self, key: K, value: V)
fn remove<K: Encodable>(&mut self, key: &K)
fn build(database: D, map: &HashMap<Vec<u8>, Vec<u8>>) -> Self
fn get_raw<'a, 'b>(&'a self, key: &'b [u8]) -> Option<Vec<u8>>
fn insert_raw(&mut self, key: Vec<u8>, value: Vec<u8>)
fn remove_raw<'a, 'b: 'a>(&'a mut self, key: &'b [u8])
Trait Implementations
impl<D: Clone + DatabaseGuard> Clone for Trie<D>
[src]
fn clone(&self) -> Trie<D>
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