pub trait DbMapKeyType:
Ord
+ Clone
+ Default
+ HashValue {
// Required methods
fn from_bytes(bytes: &[u8]) -> Self;
fn signature() -> [u8; 8];
fn as_bytes(&self) -> &[u8] ⓘ;
fn cmp_u8(&self, other: &[u8]) -> Ordering;
}Expand description
key type
Required Methods§
Sourcefn from_bytes(bytes: &[u8]) -> Self
fn from_bytes(bytes: &[u8]) -> Self
Convert a byte slice to Key.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.