Trait pearl::Key

source · []
pub trait Key<'a>: AsRef<[u8]> + From<Vec<u8>> + Debug + Clone + Send + Sync + Ord + Default {
    type Ref: RefKey<'a>;

    const LEN: u16;
    fn to_vec(&self) -> Vec<u8> { ... }
fn as_ref_key(&'a self) -> Self::Ref { ... } }
Expand description

Trait Key

Associated Types

Reference type for zero-copy key creation

Associated Constants

Key must have fixed length

Provided methods

Convert Self into Vec<u8>

Convert Self to Self::Ref

Implementors