Trait atools::Join

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

Join scalars together.

Required Methods§

source

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

Join a array and an scalar together. For joining two arrays together, see Couple.

let a = [1, 2].join(3);
let b = 1.join([2, 3]);
let c = 1.join(2).join(3);

Implementations on Foreign Types§

source§

impl<T, const N: usize> Join<T, N, 1, T> for [T; N]

source§

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

Implementors§

source§

impl<T> Join<T, 1, 1, T> for T

source§

impl<T, const O: usize> Join<T, 1, O, [T; O]> for T