pub trait FromArray<T, const N: usize>: From<[T; N]> {
// Provided methods
fn from_array(value: [T; N]) -> Self { ... }
fn from_fn<F>(f: F) -> Self
where F: FnMut(usize) -> T { ... }
fn splat(val: T) -> Self
where T: Clone { ... }
}Provided Methods§
fn from_array(value: [T; N]) -> Self
fn from_fn<F>(f: F) -> Self
fn splat(val: T) -> Selfwhere
T: Clone,
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.