pub struct ReadonlyPrefixedStorage<'a> { /* private fields */ }
👎Deprecated: The crate cosmwasm-storage is unmaintained and will be removed in CosmWasm 2.0. Please consider migrating to cw-storage-plus or simple cosmwasm-std storage calls.
Implementations§
Trait Implementations§
source§impl<'a> Storage for ReadonlyPrefixedStorage<'a>
impl<'a> Storage for ReadonlyPrefixedStorage<'a>
source§fn range<'b>(
&'b self,
start: Option<&[u8]>,
end: Option<&[u8]>,
order: Order
) -> Box<dyn Iterator<Item = Record> + 'b>
fn range<'b>( &'b self, start: Option<&[u8]>, end: Option<&[u8]>, order: Order ) -> Box<dyn Iterator<Item = Record> + 'b>
range allows iteration over a set of keys, either forwards or backwards
source§fn get(&self, key: &[u8]) -> Option<Vec<u8>>
fn get(&self, key: &[u8]) -> Option<Vec<u8>>
Returns None when key does not exist.
Returns Some(Vec) when key exists. Read more
fn set(&mut self, _key: &[u8], _value: &[u8])
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ReadonlyPrefixedStorage<'a>
impl<'a> !Send for ReadonlyPrefixedStorage<'a>
impl<'a> !Sync for ReadonlyPrefixedStorage<'a>
impl<'a> Unpin for ReadonlyPrefixedStorage<'a>
impl<'a> !UnwindSafe for ReadonlyPrefixedStorage<'a>
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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