pub trait Key:
Copy
+ PartialEq
+ Ord
+ Default
+ Debug {
type Bytes: AsRef<[u8]>;
// Required methods
fn into_bytes(self) -> Self::Bytes;
fn from_bytes(bytes: Self::Bytes) -> Self;
}
Required Associated Types§
Required Methods§
fn into_bytes(self) -> Self::Bytes
fn from_bytes(bytes: Self::Bytes) -> Self
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.