pub trait ToFromByteArray<const LENGTH: usize>: Sized {
const BYTE_LENGTH: usize = LENGTH;
// Required methods
fn from_byte_array(bytes: &[u8; LENGTH]) -> Result<Self, FastCryptoError>;
fn to_byte_array(&self) -> [u8; LENGTH];
}Provided Associated Constants§
const BYTE_LENGTH: usize = LENGTH
Required Methods§
fn from_byte_array(bytes: &[u8; LENGTH]) -> Result<Self, FastCryptoError>
fn to_byte_array(&self) -> [u8; LENGTH]
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.