SubstateKeyContent

Trait SubstateKeyContent 

Source
pub trait SubstateKeyContent: Sized + 'static {
    // Required methods
    fn from_db_key<M>(db_sort_key: &DbSortKey) -> Self
       where M: DatabaseKeyMapper + ?Sized;
    fn into_typed_key(self) -> SubstateKey;
}

Required Methods§

Source

fn from_db_key<M>(db_sort_key: &DbSortKey) -> Self

Source

fn into_typed_key(self) -> SubstateKey

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.

Implementations on Foreign Types§

Source§

impl SubstateKeyContent for ([u8; 2], Vec<u8>)

Source§

fn from_db_key<M>(db_sort_key: &DbSortKey) -> ([u8; 2], Vec<u8>)

Source§

fn into_typed_key(self) -> SubstateKey

Source§

impl SubstateKeyContent for u8

Implementors§