Struct cosmwasm_storage::ReadonlyPrefixedStorage
source · [−]pub struct ReadonlyPrefixedStorage<'a> { /* private fields */ }
Implementations
sourceimpl<'a> ReadonlyPrefixedStorage<'a>
impl<'a> ReadonlyPrefixedStorage<'a>
Trait Implementations
sourceimpl<'a> Storage for ReadonlyPrefixedStorage<'a>
impl<'a> Storage for ReadonlyPrefixedStorage<'a>
sourcefn 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
sourcefn 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
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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