pub trait Key:
'static
+ Send
+ Sync {
// Required methods
fn collect(&self) -> impl AsRef<[u8]>;
fn into_key(value: &[u8]) -> Result<Self>
where Self: Sized;
}Required Methods§
fn collect(&self) -> impl AsRef<[u8]>
fn into_key(value: &[u8]) -> Result<Self>where
Self: Sized,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".