Trait cfxcore::db::Key

source ·
pub trait Key<T> {
    type Target: Deref<Target = [u8]>;

    // Required method
    fn key(&self) -> Self::Target;
}
Expand description

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

Required Associated Types§

source

type Target: Deref<Target = [u8]>

The db key associated with this value.

Required Methods§

source

fn key(&self) -> Self::Target

Returns db key.

Implementors§