Trait kv::Key

source · []
pub trait Key<'a>: Sized + AsRef<[u8]> {
    fn from_raw_key(r: &'a Raw) -> Result<Self, Error>;

    fn to_raw_key(&self) -> Result<Raw, Error> { ... }
}
Expand description

A Key can be used as a key to a database

Required Methods

Convert from Raw

Provided Methods

Wrapper around AsRef<u8>

Implementations on Foreign Types

Implementors