[−][src]Struct trie_db::FatDB
A Trie
implementation which hashes keys and uses a generic HashDB
backing database.
Additionaly it stores inserted hash-key mappings for later retrieval.
Use it as a Trie
or TrieMut
trait object.
Methods
impl<'db, H, C> FatDB<'db, H, C> where
H: Hasher,
C: NodeCodec<H>,
[src]
impl<'db, H, C> FatDB<'db, H, C> where
H: Hasher,
C: NodeCodec<H>,
pub fn new( | [src] |
Create a new trie with the backing database db
and empty root
Initialise to the state entailed by the genesis block.
This guarantees the trie is built correctly.
pub fn db(&self) -> &dyn HashDB<H, DBValue> | [src] |
Get the backing database.
Trait Implementations
impl<'db, H, C> Trie<H, C> for FatDB<'db, H, C> where
H: Hasher,
C: NodeCodec<H>,
[src]
impl<'db, H, C> Trie<H, C> for FatDB<'db, H, C> where
H: Hasher,
C: NodeCodec<H>,
fn root(&self) -> &H::Out | [src] |
fn contains(&self, key: &[u8]) -> Result<bool, H::Out, C::Error> | [src] |
fn get_with<'a, 'key, Q: Query<H>>( | [src] |
fn iter<'a>( | [src] |
fn is_empty(&self) -> bool | [src] |
Is the trie empty?
fn get<'a, 'key>( | [src] |
What is the value of the given key in this trie?
Auto Trait Implementations
impl<'db, H, C> Send for FatDB<'db, H, C> where
C: Send,
<H as Hasher>::Out: Sync,
impl<'db, H, C> Send for FatDB<'db, H, C> where
C: Send,
<H as Hasher>::Out: Sync,
impl<'db, H, C> Sync for FatDB<'db, H, C> where
C: Sync,
<H as Hasher>::Out: Sync,
impl<'db, H, C> Sync for FatDB<'db, H, C> where
C: Sync,
<H as Hasher>::Out: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |