Trait bonsaidb_core::key::KeyEncoding
source · pub trait KeyEncoding<'k, K>: Send + Syncwhere
K: Key<'k>,{
type Error: AnyError;
const LENGTH: Option<usize>;
fn as_ord_bytes(&'k self) -> Result<Cow<'k, [u8]>, Self::Error>;
}
Expand description
A trait that enables a type to convert itself into a memcmp
-compatible
sequence of bytes.