Skip to main content

ToArray

Trait ToArray 

Source
pub trait ToArray<T, const N: usize>: Into<[T; N]> {
    // Provided method
    fn to_array(self) -> [T; N] { ... }
}

Provided Methods§

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.

Implementors§

Source§

impl<C, T, const N: usize> ToArray<T, N> for C
where C: Into<[T; N]>,