[][src]Struct cosmwasm_storage::PrefixedStorage

pub struct PrefixedStorage<'a> { /* fields omitted */ }

Implementations

impl<'a> PrefixedStorage<'a>[src]

pub fn new(storage: &'a mut dyn Storage, namespace: &[u8]) -> Self[src]

pub fn multilevel(storage: &'a mut dyn Storage, namespaces: &[&[u8]]) -> Self[src]

pub fn get(&self, key: &[u8]) -> Option<Vec<u8>>[src]

pub fn set(&mut self, key: &[u8], value: &[u8])[src]

pub fn remove(&mut self, key: &[u8])[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for PrefixedStorage<'a>

impl<'a> !Send for PrefixedStorage<'a>

impl<'a> !Sync for PrefixedStorage<'a>

impl<'a> Unpin for PrefixedStorage<'a>

impl<'a> !UnwindSafe for PrefixedStorage<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.