pub trait StorageKey {
    const KEY: Key;

    // Provided method
    fn key(&self) -> Key { ... }
}
Expand description

Holds storage key for the type.

Note

The trait is automatically implemented for Packed types via blanket implementation.

Required Associated Constants§

source

const KEY: Key

Storage key of the type.

Provided Methods§

source

fn key(&self) -> Key

Returns the storage key.

Implementors§

source§

impl StorageKey for AutoKey

source§

const KEY: Key = 0u32

source§

impl<L: StorageKey, R: StorageKey> StorageKey for ResolverKey<L, R>

source§

const KEY: Key = _

source§

impl<P> StorageKey for Pwhere P: Packed,

source§

const KEY: Key = 0u32

source§

impl<const KEY: Key, ParentKey: StorageKey> StorageKey for ManualKey<KEY, ParentKey>

source§

const KEY: Key = _