Struct trie::SecureTrieMut
[−]
[src]
pub struct SecureTrieMut<T: TrieMut>(_);
Represents a secure mutable trie where the key is hashed.
Methods
impl<T: TrieMut> SecureTrieMut<T>
[src]
fn to_trie(self) -> T
[src]
Into the underlying TrieMut object.
fn new(trie: T) -> Self
[src]
Initialize a new mutable trie.
fn root(&self) -> H256
[src]
Get the root hash of the current trie.
fn insert<K: AsRef<[u8]>>(&mut self, key: &K, value: &[u8])
[src]
Insert a value to the trie.
fn delete<K: AsRef<[u8]>>(&mut self, key: &K)
[src]
Delete a value in the trie.
fn get<K: AsRef<[u8]>>(&self, key: &K) -> Option<Vec<u8>>
[src]
Get a value in the trie.
Trait Implementations
impl<T: Clone + TrieMut> Clone for SecureTrieMut<T>
[src]
fn clone(&self) -> SecureTrieMut<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more