[][src]Struct sp_trie::KeySpacedDBMut

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

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

Mutable variant of KeySpacedDB, see KeySpacedDB.

Methods

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

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

instantiate new keyspaced db

Trait Implementations

impl<'a, DB, H, T> AsHashDB<H, T> for KeySpacedDBMut<'a, DB, H> where
    DB: HashDB<H, T>,
    H: Hasher,
    T: Default + PartialEq<T> + for<'b> From<&'b [u8]> + Clone + Send + Sync
[src]

impl<'a, DB, H, T> HashDB<H, T> for KeySpacedDBMut<'a, DB, H> where
    DB: HashDB<H, T>,
    H: Hasher,
    T: Default + PartialEq<T> + for<'b> From<&'b [u8]> + Clone + Send + Sync
[src]

Auto Trait Implementations

impl<'a, DB, H> RefUnwindSafe for KeySpacedDBMut<'a, DB, H> where
    DB: RefUnwindSafe,
    H: RefUnwindSafe

impl<'a, DB, H> Send for KeySpacedDBMut<'a, DB, H> where
    DB: Send,
    H: Send

impl<'a, DB, H> Sync for KeySpacedDBMut<'a, DB, H> where
    DB: Sync,
    H: Sync

impl<'a, DB, H> Unpin for KeySpacedDBMut<'a, DB, H> where
    H: Unpin

impl<'a, DB, H> !UnwindSafe for KeySpacedDBMut<'a, DB, H>

Blanket Implementations

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

impl<H, T> AsHashDB<H> for T where
    H: Hasher,
    T: AsHashDB<H, Vec<u8>>, 
[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, U> Into<U> for T where
    U: From<T>, 
[src]

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

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

Get a reference to the inner from the outer.

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>,