pub trait RawArray<const LEN: usize> {
// Required methods
fn from_raw_array(val: impl Into<[u8; LEN]>) -> Self;
fn to_raw_array(&self) -> [u8; LEN];
}
Expand description
Trait which does a blanket implementation for all types wrapping Array
s
Required Methods§
sourcefn from_raw_array(val: impl Into<[u8; LEN]>) -> Self
fn from_raw_array(val: impl Into<[u8; LEN]>) -> Self
Constructs a wrapper type around an array.
sourcefn to_raw_array(&self) -> [u8; LEN]
fn to_raw_array(&self) -> [u8; LEN]
Returns a raw array representation stored in the wrapped type.