pub trait KeyDe: Sized {
// Required method
fn decode_key(bytes: &[u8]) -> Result<Self>;
}Expand description
A trait for decoding keys.
Required Methods§
Sourcefn decode_key(bytes: &[u8]) -> Result<Self>
fn decode_key(bytes: &[u8]) -> Result<Self>
Decodes a key from a byte slice.
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.