Struct triedb::FixedTrieMut [−][src]
Represents a mutable trie that is operated on a fixed RLP value type.
Implementations
impl<T: TrieMut, K: Encodable, V: Encodable + Decodable> FixedTrieMut<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 + Encodable, V: Clone + Encodable + Decodable> Clone for FixedTrieMut<T, K, V>
[src]
fn clone(&self) -> FixedTrieMut<T, K, V>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug + TrieMut, K: Debug + Encodable, V: Debug + Encodable + Decodable> Debug for FixedTrieMut<T, K, V>
[src]
impl<T: TrieMut + Default, K: Encodable, V: Encodable + Decodable> Default for FixedTrieMut<T, K, V>
[src]
Auto Trait Implementations
impl<T, K, V> RefUnwindSafe for FixedTrieMut<T, K, V> where
K: RefUnwindSafe,
T: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<T, K, V> Send for FixedTrieMut<T, K, V> where
K: Send,
T: Send,
V: Send,
K: Send,
T: Send,
V: Send,
impl<T, K, V> Sync for FixedTrieMut<T, K, V> where
K: Sync,
T: Sync,
V: Sync,
K: Sync,
T: Sync,
V: Sync,
impl<T, K, V> Unpin for FixedTrieMut<T, K, V> where
K: Unpin,
T: Unpin,
V: Unpin,
K: Unpin,
T: Unpin,
V: Unpin,
impl<T, K, V> UnwindSafe for FixedTrieMut<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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,