#[repr(transparent)]pub struct CwStorage<S: ?Sized>(pub S);Expand description
A wrapper around a type implementing cosmwasm_std::Storage that integrates it with storey.
Tuple Fields§
§0: STrait Implementations§
Source§impl<'a, S> IntoStorage<&'a CwStorage<S>> for (&'a S,)
impl<'a, S> IntoStorage<&'a CwStorage<S>> for (&'a S,)
fn into_storage(self) -> &'a CwStorage<S>
Source§impl<'a, S> IntoStorage<&'a mut CwStorage<S>> for (&'a mut S,)
impl<'a, S> IntoStorage<&'a mut CwStorage<S>> for (&'a mut S,)
fn into_storage(self) -> &'a mut CwStorage<S>
Source§impl<S> IterableStorage for CwStorage<S>
impl<S> IterableStorage for CwStorage<S>
Source§type KeysIterator<'a> = Box<dyn Iterator<Item = Vec<u8>> + 'a>
where
Self: 'a
type KeysIterator<'a> = Box<dyn Iterator<Item = Vec<u8>> + 'a> where Self: 'a
The type of the iterator returned by
keys.Source§type ValuesIterator<'a> = Box<dyn Iterator<Item = Vec<u8>> + 'a>
where
Self: 'a
type ValuesIterator<'a> = Box<dyn Iterator<Item = Vec<u8>> + 'a> where Self: 'a
The type of the iterator returned by
values.Source§type PairsIterator<'a> = Box<dyn Iterator<Item = (Vec<u8>, Vec<u8>)> + 'a>
where
Self: 'a
type PairsIterator<'a> = Box<dyn Iterator<Item = (Vec<u8>, Vec<u8>)> + 'a> where Self: 'a
The type of the iterator returned by
pairs.Source§fn keys<'a>(
&'a self,
start: Bound<&[u8]>,
end: Bound<&[u8]>,
) -> Self::KeysIterator<'a>
fn keys<'a>( &'a self, start: Bound<&[u8]>, end: Bound<&[u8]>, ) -> Self::KeysIterator<'a>
Get an iterator over keys. Read more
Source§impl<S> RevIterableStorage for CwStorage<S>
impl<S> RevIterableStorage for CwStorage<S>
Source§type RevKeysIterator<'a> = Box<dyn Iterator<Item = Vec<u8>> + 'a>
where
Self: 'a
type RevKeysIterator<'a> = Box<dyn Iterator<Item = Vec<u8>> + 'a> where Self: 'a
The type of the iterator returned by
rev_keys.Source§type RevValuesIterator<'a> = Box<dyn Iterator<Item = Vec<u8>> + 'a>
where
Self: 'a
type RevValuesIterator<'a> = Box<dyn Iterator<Item = Vec<u8>> + 'a> where Self: 'a
The type of the iterator returned by
rev_values.Source§type RevPairsIterator<'a> = Box<dyn Iterator<Item = (Vec<u8>, Vec<u8>)> + 'a>
where
Self: 'a
type RevPairsIterator<'a> = Box<dyn Iterator<Item = (Vec<u8>, Vec<u8>)> + 'a> where Self: 'a
The type of the iterator returned by
rev_pairs.Source§fn rev_keys<'a>(
&'a self,
start: Bound<&[u8]>,
end: Bound<&[u8]>,
) -> Self::RevKeysIterator<'a>
fn rev_keys<'a>( &'a self, start: Bound<&[u8]>, end: Bound<&[u8]>, ) -> Self::RevKeysIterator<'a>
Get a reverse iterator over keys. Read more
Source§fn rev_values<'a>(
&'a self,
start: Bound<&[u8]>,
end: Bound<&[u8]>,
) -> Self::RevValuesIterator<'a>
fn rev_values<'a>( &'a self, start: Bound<&[u8]>, end: Bound<&[u8]>, ) -> Self::RevValuesIterator<'a>
Get a reverse iterator over values. Read more
Source§impl<S> StorageBackend for CwStorage<S>
impl<S> StorageBackend for CwStorage<S>
Auto Trait Implementations§
impl<S> Freeze for CwStorage<S>
impl<S> RefUnwindSafe for CwStorage<S>where
S: RefUnwindSafe + ?Sized,
impl<S> Send for CwStorage<S>
impl<S> Sync for CwStorage<S>
impl<S> Unpin for CwStorage<S>
impl<S> UnwindSafe for CwStorage<S>where
S: UnwindSafe + ?Sized,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more