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> Freeze for ReadonlySingleton<'a, T>
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§
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