Struct trie::MemoryDatabase
[−]
[src]
pub struct MemoryDatabase(_);
Methods
impl MemoryDatabase[src]
fn new() -> Self
Trait Implementations
impl<'a> Database<'a> for MemoryDatabase[src]
type Guard = MemoryDatabaseGuard<'a>
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, V: Encodable + Decodable>(
&'a self,
root: H256
) -> FixedTrie<Self::Guard, K, V>
&'a self,
root: H256
) -> FixedTrie<Self::Guard, K, V>
fn create_fixed_empty<K: Encodable, V: Encodable + Decodable>(
&'a self
) -> FixedTrie<Self::Guard, K, V>
&'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>
&'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>
&'a self
) -> FixedSecureTrie<Self::Guard, K, V>
impl Default for MemoryDatabase[src]
fn default() -> MemoryDatabase
Returns the "default value" for a type. Read more