Trait 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§

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