Trait vapcore_db::Key[][src]

pub trait Key<T> {
    type Target: AsRef<[u8]>;
    fn key(&self) -> Self::Target;
}

Should be used to get database key associated with given value.

Associated Types

type Target: AsRef<[u8]>[src]

The db key associated with this value.

Loading content...

Required methods

fn key(&self) -> Self::Target[src]

Returns db key.

Loading content...

Implementations on Foreign Types

impl Key<H256> for BlockNumber[src]

type Target = BlockNumberKey

impl Key<BlockDetails> for H256[src]

type Target = H264

impl Key<TransactionAddress> for H256[src]

type Target = H264

impl Key<BlockReceipts> for H256[src]

type Target = H264

impl Key<PendingTransition> for H256[src]

type Target = H264

impl Key<EpochTransitions> for u64[src]

type Target = EpochTransitionsKey

Loading content...

Implementors

Loading content...