Expand description
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.
Implementations
sourceimpl<'db, H, C> FatDB<'db, H, C> where
H: Hasher,
C: NodeCodec<H>,
impl<'db, H, C> FatDB<'db, H, C> where
H: Hasher,
C: NodeCodec<H>,
Trait Implementations
sourceimpl<'db, H, C> Trie<H, C> for FatDB<'db, H, C> where
H: Hasher,
C: NodeCodec<H>,
impl<'db, H, C> Trie<H, C> for FatDB<'db, H, C> where
H: Hasher,
C: NodeCodec<H>,
sourcefn contains(&self, key: &[u8]) -> Result<bool, H::Out, C::Error>
fn contains(&self, key: &[u8]) -> Result<bool, H::Out, C::Error>
Does the trie contain a given key?
sourcefn get_with<'a, 'key, Q: Query<H>>(
&'a self,
key: &'key [u8],
query: Q
) -> Result<Option<Q::Item>, H::Out, C::Error> where
'a: 'key,
fn get_with<'a, 'key, Q: Query<H>>(
&'a self,
key: &'key [u8],
query: Q
) -> Result<Option<Q::Item>, H::Out, C::Error> where
'a: 'key,
Search for the key with the given query parameter. See the docs of the Query
trait for more details. Read more
Auto Trait Implementations
impl<'db, H, C> !RefUnwindSafe for FatDB<'db, H, C>
impl<'db, H, C> !Send for FatDB<'db, H, C>
impl<'db, H, C> !Sync for FatDB<'db, H, C>
impl<'db, H, C> Unpin for FatDB<'db, H, C> where
C: Unpin,
impl<'db, H, C> !UnwindSafe for FatDB<'db, H, C>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more