Struct triedb::FixedSecureTrieMut [−][src]
Represents a secure mutable trie where the key is hashed, and operated on a fixed RLP value type.
Implementations
impl<T: TrieMut, K: AsRef<[u8]>, V: Encodable + Decodable> FixedSecureTrieMut<T, K, V>
[src][−]
pub fn to_trie(self) -> T
[src][−]
Into the underlying TrieMut object.
pub fn new(trie: T) -> Self
[src][−]
Initialize a new mutable trie.
pub fn root(&self) -> H256
[src][−]
Get the root hash of the current trie.
pub fn insert(&mut self, key: &K, value: &V)
[src][−]
Insert a value to the trie.
pub fn delete(&mut self, key: &K)
[src][−]
Delete a value in the trie.
pub 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][+]
impl<T: Debug + TrieMut, K: Debug + AsRef<[u8]>, V: Debug + Encodable + Decodable> Debug for FixedSecureTrieMut<T, K, V>
[src][+]
impl<T: TrieMut + Default, K: AsRef<[u8]>, V: Encodable + Decodable> Default for FixedSecureTrieMut<T, K, V>
[src][+]
Auto Trait Implementations
impl<T, K, V> RefUnwindSafe for FixedSecureTrieMut<T, K, V> where
K: RefUnwindSafe,
T: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<T, K, V> Send for FixedSecureTrieMut<T, K, V> where
K: Send,
T: Send,
V: Send,
K: Send,
T: Send,
V: Send,
impl<T, K, V> Sync for FixedSecureTrieMut<T, K, V> where
K: Sync,
T: Sync,
V: Sync,
K: Sync,
T: Sync,
V: Sync,
impl<T, K, V> Unpin for FixedSecureTrieMut<T, K, V> where
K: Unpin,
T: Unpin,
V: Unpin,
K: Unpin,
T: Unpin,
V: Unpin,
impl<T, K, V> UnwindSafe for FixedSecureTrieMut<T, K, V> where
K: UnwindSafe,
T: UnwindSafe,
V: UnwindSafe,
K: UnwindSafe,
T: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,