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