Struct trie::AnySecureTrieMut
[−]
[src]
pub struct AnySecureTrieMut<T: TrieMut>(_);
Represents a secure mutable trie where the key is hashed, and operated on any RLP values.
Methods
impl<T: TrieMut> AnySecureTrieMut<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]>, V: Encodable>(&mut self, key: &K, value: &V)
[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]>, V: Decodable>(&self, key: &K) -> Option<V>
[src]
Get a value in the trie.
Trait Implementations
impl<T: Clone + TrieMut> Clone for AnySecureTrieMut<T>
[src]
fn clone(&self) -> AnySecureTrieMut<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