Trait atools::Couple

source ·
pub trait Couple<T, const N: usize, const O: usize> {
    // Required method
    fn couple(self, with: [T; O]) -> [T; { _ }];
}
Expand description

Couple two arrays together.

Required Methods§

source

fn couple(self, with: [T; O]) -> [T; { _ }]

Couple two arrays together. This could have been Join, but the methods would require disambiguation.

let a = 1.join(2).couple([3, 4]);

Implementations on Foreign Types§

source§

impl<T, const N: usize, const O: usize> Couple<T, N, O> for [T; N]

source§

fn couple(self, with: [T; O]) -> [T; { _ }]

Implementors§