pub trait Key<'a>: AsRef<[u8]> + From<Vec<u8>> + From<&'a [u8]> + Debug + Clone + Send + Sync + Ord + Default {
type Ref: RefKey<'a>;
const LEN: u16;
const MEM_SIZE: usize;
// Provided methods
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
Object Safety§
This trait is not object safe.