[−][src]Trait exonum_merkledb::access::RawAccessMut
Allows to mutate data in indexes.
This is a marker trait that is used as a bound for mutable operations on indexes. It can be used in the same way for high-level database objects:
Example
use exonum_merkledb::{access::{Access, RawAccessMut}, ListIndex, MapIndex}; pub struct Schema<T: Access> { list: ListIndex<T::Base, String>, map: MapIndex<T::Base, u64, u64>, } impl<T: Access> Schema<T> where T::Base: RawAccessMut, { pub fn mutate(&mut self) { self.list.push("foo".to_owned()); self.map.put(&1, 2); } }
Implementors
impl<'_> RawAccessMut for GenericRawAccess<'_>
[src]
Will panic in runtime if mutable methods are called on an inappropriate underlying access.
impl<'a, T> RawAccessMut for T where
T: RawAccess<Changes = ChangesMut<'a>>,
[src]
T: RawAccess<Changes = ChangesMut<'a>>,