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> Freeze for ReadonlyPrefixedStorage<'a>
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ยง
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