pub trait RawArray<const LEN: usize>: Sized {
// Required methods
fn from_raw_array(val: impl Into<[u8; LEN]>) -> Self;
fn to_raw_array(&self) -> [u8; LEN];
}
👎Deprecated since 4.2.0: use ByteArray instead
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
👎Deprecated since 4.2.0: use ByteArray instead
fn from_raw_array(val: impl Into<[u8; LEN]>) -> Self
Constructs a wrapper type around an array.
sourcefn to_raw_array(&self) -> [u8; LEN]
👎Deprecated since 4.2.0: use ByteArray instead
fn to_raw_array(&self) -> [u8; LEN]
Returns a raw array representation stored in the wrapped type.
Object Safety§
This trait is not object safe.