pub trait StoragePrefixedContainer {
// Required methods
fn pezpallet_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 pezpallet_prefix() -> &'static [u8] ⓘ
fn pezpallet_prefix() -> &'static [u8] ⓘ
Pezpallet 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.
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.