pub trait Storage {
type Value: Value;
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§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.