Struct triedb::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.

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

impl<T, K, V> Send for FixedSecureTrieMut<T, K, V> where
    K: Send,
    T: Send,
    V: Send

impl<T, K, V> Sync for FixedSecureTrieMut<T, K, V> where
    K: Sync,
    T: Sync,
    V: Sync

impl<T, K, V> Unpin for FixedSecureTrieMut<T, K, V> where
    K: Unpin,
    T: Unpin,
    V: Unpin

impl<T, K, V> UnwindSafe for FixedSecureTrieMut<T, K, V> where
    K: UnwindSafe,
    T: UnwindSafe,
    V: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]