Struct cosmwasm_storage::ReadonlySingleton
source · pub struct ReadonlySingleton<'a, T>where
T: Serialize + DeserializeOwned,{ /* 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.
Expand description
ReadonlySingleton only requires a Storage and exposes only the methods of Singleton that don’t modify state.
Implementations§
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for ReadonlySingleton<'a, T>
impl<'a, T> !Send for ReadonlySingleton<'a, T>
impl<'a, T> !Sync for ReadonlySingleton<'a, T>
impl<'a, T> Unpin for ReadonlySingleton<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for ReadonlySingleton<'a, T>
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