[][src]Trait frame_support::storage::StoragePrefixedMap

pub trait StoragePrefixedMap<Value: FullCodec> {
    fn module_prefix() -> &'static [u8];
fn storage_prefix() -> &'static [u8]; fn final_prefix() -> [u8; 32] { ... }
fn remove_all() { ... }
fn iter() -> PrefixIterator<Value> { ... } }

Trait for maps that store all its value after a unique prefix.

By default the final prefix is:

Twox128(module_prefix) ++ Twox128(storage_prefix)

Required methods

Important traits for &'_ mut [u8]
fn module_prefix() -> &'static [u8]

Module prefix. Used for generating final key.

Important traits for &'_ mut [u8]
fn storage_prefix() -> &'static [u8]

Storage prefix. Used for generating final key.

Loading content...

Provided methods

fn final_prefix() -> [u8; 32]

fn remove_all()

Important traits for PrefixIterator<Value>
fn iter() -> PrefixIterator<Value>

Loading content...

Implementors

Loading content...