[−][src]Struct sp_trie::KeySpacedDBMut
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
.
Implementations
impl<'a, DB, H> KeySpacedDBMut<'a, DB, H> where
H: Hasher,
[src]
H: Hasher,
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]
DB: HashDB<H, T>,
H: Hasher,
T: Default + PartialEq<T> + for<'b> From<&'b [u8]> + Clone + Send + Sync,
fn as_hash_db(&self) -> &dyn HashDB<H, T>
[src]
fn as_hash_db_mut<'b>(&'b mut self) -> &'b mut (dyn HashDB<H, T> + 'b)
[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]
DB: HashDB<H, T>,
H: Hasher,
T: Default + PartialEq<T> + for<'b> From<&'b [u8]> + Clone + Send + Sync,
fn get(&self, key: &H::Out, prefix: Prefix<'_>) -> Option<T>
[src]
fn contains(&self, key: &H::Out, prefix: Prefix<'_>) -> bool
[src]
fn insert(&mut self, prefix: Prefix<'_>, value: &[u8]) -> H::Out
[src]
fn emplace(&mut self, key: H::Out, prefix: Prefix<'_>, value: T)
[src]
fn remove(&mut self, key: &H::Out, prefix: Prefix<'_>)
[src]
Auto Trait Implementations
impl<'a, DB, H> RefUnwindSafe for KeySpacedDBMut<'a, DB, H> where
DB: RefUnwindSafe,
H: RefUnwindSafe,
DB: RefUnwindSafe,
H: RefUnwindSafe,
impl<'a, DB, H> Send for KeySpacedDBMut<'a, DB, H> where
DB: Send,
H: Send,
DB: Send,
H: Send,
impl<'a, DB, H> Sync for KeySpacedDBMut<'a, DB, H> where
DB: Sync,
H: Sync,
DB: Sync,
H: Sync,
impl<'a, DB, H> Unpin for KeySpacedDBMut<'a, DB, H> where
H: Unpin,
H: Unpin,
impl<'a, DB, H> !UnwindSafe for KeySpacedDBMut<'a, DB, H>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<H, T> AsHashDB<H> for T where
H: Hasher,
T: AsHashDB<H, Vec<u8>>,
[src]
H: Hasher,
T: AsHashDB<H, Vec<u8>>,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
[src]
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
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,
[src]
T: RefUnwindSafe,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]
T: UncheckedFrom<S>,
fn unchecked_into(self) -> T
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,