Struct fadroma::prelude::cosmwasm_storage::StorageTransaction
source · [−]pub struct StorageTransaction<'a, S> where
S: ReadonlyStorage, { /* private fields */ }
Implementations
sourceimpl<'a, S> StorageTransaction<'a, S> where
S: ReadonlyStorage,
impl<'a, S> StorageTransaction<'a, S> where
S: ReadonlyStorage,
pub fn new(storage: &'a S) -> StorageTransaction<'a, S>
Trait Implementations
sourceimpl<'a, S> ReadonlyStorage for StorageTransaction<'a, S> where
S: ReadonlyStorage,
impl<'a, S> ReadonlyStorage for StorageTransaction<'a, S> where
S: ReadonlyStorage,
sourcefn range(
&'b self,
start: Option<&[u8]>,
end: Option<&[u8]>,
order: Order
) -> Box<dyn Iterator<Item = (Vec<u8, Global>, Vec<u8, Global>)> + 'b, Global>
fn range(
&'b self,
start: Option<&[u8]>,
end: Option<&[u8]>,
order: Order
) -> Box<dyn Iterator<Item = (Vec<u8, Global>, Vec<u8, Global>)> + 'b, Global>
range allows iteration over a set of keys, either forwards or backwards uses standard rust range notation, and eg db.range(b“foo“..b“bar“) also works reverse
Auto Trait Implementations
impl<'a, S> RefUnwindSafe for StorageTransaction<'a, S> where
S: RefUnwindSafe,
impl<'a, S> Send for StorageTransaction<'a, S> where
S: Sync,
impl<'a, S> Sync for StorageTransaction<'a, S> where
S: Sync,
impl<'a, S> Unpin for StorageTransaction<'a, S>
impl<'a, S> UnwindSafe for StorageTransaction<'a, S> where
S: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more