pub trait DoubleKeyTransientMapping {
type Key1: Asm;
type Key2: Asm;
type Value: TransientStorageValue;
const STORAGE_SLOT: i32;
// Required method
fn storage_key(key1: Self::Key1, key2: Self::Key2) -> [u8; 32];
// Provided methods
fn get(key1: Self::Key1, key2: Self::Key2) -> Self::Value { ... }
fn set(key1: Self::Key1, key2: Self::Key2, value: Self::Value) { ... }
}
Expand description
Transient storage mapping interface
Required Associated Constants§
const STORAGE_SLOT: i32
Required Associated Types§
Required Methods§
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.