pub struct MemoryDatabase(/* private fields */);Implementations§
Trait Implementations§
Source§impl<'a> Database<'a> for MemoryDatabase
impl<'a> Database<'a> for MemoryDatabase
type Guard = MemoryDatabaseGuard<'a>
fn create_guard(&'a self) -> Self::Guard
fn create_trie(&'a self, root: H256) -> Trie<Self::Guard>
fn create_empty(&'a self) -> Trie<Self::Guard>
fn create_secure_trie(&'a self, root: H256) -> SecureTrie<Self::Guard>
fn create_secure_empty(&'a self) -> SecureTrie<Self::Guard>
fn create_fixed_trie<K: Encodable + Decodable, V: Encodable + Decodable>( &'a self, root: H256, ) -> FixedTrie<Self::Guard, K, V>
fn create_fixed_empty<K: Encodable + Decodable, V: Encodable + Decodable>( &'a self, ) -> FixedTrie<Self::Guard, K, V>
fn create_fixed_secure_trie<K: AsRef<[u8]>, V: Encodable + Decodable>( &'a self, root: H256, ) -> FixedSecureTrie<Self::Guard, K, V>
fn create_fixed_secure_empty<K: AsRef<[u8]>, V: Encodable + Decodable>( &'a self, ) -> FixedSecureTrie<Self::Guard, K, V>
Source§impl Default for MemoryDatabase
impl Default for MemoryDatabase
Source§fn default() -> MemoryDatabase
fn default() -> MemoryDatabase
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for MemoryDatabase
impl RefUnwindSafe for MemoryDatabase
impl Send for MemoryDatabase
impl Sync for MemoryDatabase
impl Unpin for MemoryDatabase
impl UnwindSafe for MemoryDatabase
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