pub trait StoragePrefixedContainer {
// Required methods
fn pallet_prefix() -> &'static [u8] ⓘ;
fn storage_prefix() -> &'static [u8] ⓘ;
// Provided method
fn final_prefix() -> [u8; 32] { ... }
}
Expand description
Trait for storage types that store all its value after a unique prefix.
Required Methods§
sourcefn pallet_prefix() -> &'static [u8] ⓘ
fn pallet_prefix() -> &'static [u8] ⓘ
Pallet prefix. Used for generating final key.
sourcefn storage_prefix() -> &'static [u8] ⓘ
fn storage_prefix() -> &'static [u8] ⓘ
Storage prefix. Used for generating final key.
Provided Methods§
sourcefn final_prefix() -> [u8; 32]
fn final_prefix() -> [u8; 32]
Final full prefix that prefixes all keys.
Object Safety§
This trait is not object safe.