pub trait FromArray<const N: usize, T>where
Self: Sized,{
// Required method
fn from_array(a: &[T; N]) -> [Self; N];
}
Expand description
Work around the inability to implement from
for arrays of Encoding
s
due to the coherence rules.
Required Methods§
fn from_array(a: &[T; N]) -> [Self; N]
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.