pub trait Storage {
type Value: StorageValue + Asm;
const STORAGE_KEY: [u8; 32];
const STORAGE_SLOT: i32;
// Provided methods
fn get() -> Self::Value { ... }
fn set(value: Self::Value) { ... }
}
Expand description
Storage trait. Currently not for public use
Required Associated Constants§
const STORAGE_KEY: [u8; 32]
const STORAGE_SLOT: i32
Required Associated Types§
type Value: StorageValue + Asm
Provided Methods§
Object Safety§
This trait is not object safe.