pub trait Array<const N: usize, T>: Sized + Seal {
// Required methods
fn array(self) -> [T; N];
fn tuple(x: [T; N]) -> Self;
}Expand description
Turn a tuple into a array. Implemented for N≤32
Required Methods§
Sourcefn tuple(x: [T; N]) -> Self
fn tuple(x: [T; N]) -> Self
Turn a array into a tuple.
Prefer postfix Tuple::tuple.
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.