[][src]Struct sp_trie::KeySpacedDB

pub struct KeySpacedDB<'a, DB, H>(_, _, _);

HashDB implementation that append a encoded prefix (unique id bytes) in addition to the prefix of every key value.

Implementations

impl<'a, DB, H> KeySpacedDB<'a, DB, H> where
    H: Hasher
[src]

pub fn new(db: &'a DB, ks: &'a [u8]) -> Self[src]

instantiate new keyspaced db

Trait Implementations

impl<'a, DB, H, T> HashDBRef<H, T> for KeySpacedDB<'a, DB, H> where
    DB: HashDBRef<H, T>,
    H: Hasher,
    T: From<&'static [u8]>, 
[src]

Auto Trait Implementations

impl<'a, DB, H> RefUnwindSafe for KeySpacedDB<'a, DB, H> where
    DB: RefUnwindSafe,
    H: RefUnwindSafe
[src]

impl<'a, DB, H> Send for KeySpacedDB<'a, DB, H> where
    DB: Sync,
    H: Send
[src]

impl<'a, DB, H> Sync for KeySpacedDB<'a, DB, H> where
    DB: Sync,
    H: Sync
[src]

impl<'a, DB, H> Unpin for KeySpacedDB<'a, DB, H> where
    H: Unpin
[src]

impl<'a, DB, H> UnwindSafe for KeySpacedDB<'a, DB, H> where
    DB: RefUnwindSafe,
    H: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 
[src]

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,