pub struct FixedSecureTrie<D: DatabaseGuard, K: AsRef<[u8]>, V: Encodable + Decodable>(/* private fields */);Implementations§
Source§impl<D: DatabaseGuard, K: AsRef<[u8]>, V: Encodable + Decodable> FixedSecureTrie<D, K, V>
impl<D: DatabaseGuard, K: AsRef<[u8]>, V: Encodable + Decodable> FixedSecureTrie<D, K, V>
pub fn new(trie: SecureTrie<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)
Trait Implementations§
Source§impl<D: Clone + DatabaseGuard, K: Clone + AsRef<[u8]>, V: Clone + Encodable + Decodable> Clone for FixedSecureTrie<D, K, V>
impl<D: Clone + DatabaseGuard, K: Clone + AsRef<[u8]>, V: Clone + Encodable + Decodable> Clone for FixedSecureTrie<D, K, V>
Source§fn clone(&self) -> FixedSecureTrie<D, K, V>
fn clone(&self) -> FixedSecureTrie<D, K, V>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<D, K, V> Freeze for FixedSecureTrie<D, K, V>where
D: Freeze,
impl<D, K, V> RefUnwindSafe for FixedSecureTrie<D, K, V>
impl<D, K, V> Send for FixedSecureTrie<D, K, V>
impl<D, K, V> Sync for FixedSecureTrie<D, K, V>
impl<D, K, V> Unpin for FixedSecureTrie<D, K, V>
impl<D, K, V> UnwindSafe for FixedSecureTrie<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