Trait siamesedb::DbMapKeyType
source · [−]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
fn from_bytes(bytes: &[u8]) -> Self
fn from_bytes(bytes: &[u8]) -> Self
Convert a byte slice to Key.
Byte slice of data to be saved.