pub struct FixedTrie<D: DatabaseGuard, K: Encodable + Decodable, V: Encodable + Decodable>(/* private fields */);Implementations§
Source§impl<D: DatabaseGuard, K: Encodable + Decodable, V: Encodable + Decodable> FixedTrie<D, K, V>
impl<D: DatabaseGuard, K: Encodable + Decodable, V: Encodable + Decodable> FixedTrie<D, K, V>
pub fn new(trie: Trie<D>) -> Self
pub fn empty(database: D) -> Self
pub fn existing(database: D, root: H256) -> Self
pub fn root(&self) -> H256
pub fn is_empty(&self) -> bool
pub fn get(&self, key: &K) -> Option<V>
pub fn insert(&mut self, key: K, value: V)
pub fn remove(&mut self, key: &K)
pub fn iter(&self) -> FixedMerkleIterator<'_, D, K, V> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl<D, K, V> Freeze for FixedTrie<D, K, V>where
D: Freeze,
impl<D, K, V> RefUnwindSafe for FixedTrie<D, K, V>
impl<D, K, V> Send for FixedTrie<D, K, V>
impl<D, K, V> Sync for FixedTrie<D, K, V>
impl<D, K, V> Unpin for FixedTrie<D, K, V>
impl<D, K, V> UnwindSafe for FixedTrie<D, K, V>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more