pub trait PrivateKeyExtensionwhere
Self: Sized,{
// Required methods
fn to_vec(&self) -> Vec<u8> ⓘ;
fn from_slice(slice: &[u8]) -> Result<Self, CryptoError>;
}
Required Methods§
fn to_vec(&self) -> Vec<u8> ⓘ
fn from_slice(slice: &[u8]) -> Result<Self, CryptoError>
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.