Trait atools::Array

source ·
pub trait Array<const N: usize, T> {
    // Required method
    fn array(self) -> [T; N];
}
Expand description

Turn a tuple into a array. Implemented for N≤32

Required Methods§

source

fn array(self) -> [T; N]

Turn a tuple into a array

Implementations on Foreign Types§

source§

impl<T> Array<1, T> for (T,)

source§

fn array(self) -> [T; 1]

source§

impl<T> Array<2, T> for (T, T)

source§

fn array(self) -> [T; 2]

source§

impl<T> Array<3, T> for (T, T, T)

source§

fn array(self) -> [T; 3]

source§

impl<T> Array<32, T> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

Implementors§