Skip to main content

KeyDe

Trait KeyDe 

Source
pub trait KeyDe: Sized {
    // Required method
    fn decode_key(bytes: &[u8]) -> Result<Self>;
}
Expand description

A trait for decoding keys.

Required Methods§

Source

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.

Implementors§