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
Required Associated Types
Required Associated Constants
Provided Methods
sourcefn as_ref_key(&'a self) -> Self::Ref
fn as_ref_key(&'a self) -> Self::Ref
Convert Self
to Self::Ref