Skip to main content

IntoArray

Trait IntoArray 

Source
pub trait IntoArray<T, const N: usize> {
    // Required method
    fn into_array(self) -> [T; N];
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl IntoArray<f32, 3> for Rgb<f32>

Source§

impl IntoArray<f32, 4> for Rgba<f32>

Source§

impl IntoArray<u8, 3> for Rgb<u8>

Source§

impl IntoArray<u8, 4> for Rgba<u8>