pub trait FixedArray<const LIMBS: usize> {
// Required methods
fn to_fixed_array(&self) -> [u8; LIMBS];
fn from_fixed_array(array: &[u8; LIMBS]) -> Self;
}Expand description
A trait for converting a type to and from a fixed-size array.
Required Methods§
Sourcefn to_fixed_array(&self) -> [u8; LIMBS]
fn to_fixed_array(&self) -> [u8; LIMBS]
Convert the type to a fixed-size array.
Sourcefn from_fixed_array(array: &[u8; LIMBS]) -> Self
fn from_fixed_array(array: &[u8; LIMBS]) -> Self
Convert from a fixed-size array to the type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".