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