KeyExport

Trait KeyExport 

Source
pub trait KeyExport: KeySizeUser {
    // Required method
    fn to_bytes(&self) -> Key<Self>;
}
Expand description

Serialize a key to a byte array.

Required Methods§

Source

fn to_bytes(&self) -> Key<Self>

Serialize this key as a byte array.

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§