Skip to main content

ToArray1

Trait ToArray1 

Source
pub trait ToArray1<T>: Into<[T; 1]> {
    // Provided method
    fn to_array1(self) -> [T; 1] { ... }
}

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> ToArray1<T> for C
where C: Into<[T; 1]>,