pub trait DbMapKeyType: Ord + Clone + Default + HashValue {
    fn from_bytes(bytes: &[u8]) -> Self;
    fn signature() -> [u8; 8];
    fn as_bytes(&self) -> &[u8]Notable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8];
    fn cmp_u8(&self, other: &[u8]) -> Ordering;
}
Expand description

key type

Required Methods

Convert a byte slice to Key.

Signature in header of database file.

Byte slice of data to be saved.

Compare with stored data

Implementors