Skip to main content

ToArray2

Trait ToArray2 

Source
pub trait ToArray2<T>: Into<[T; 2]> {
    // Provided method
    fn to_array2(self) -> [T; 2] { ... }
}

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