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§
Sourcefn join(self, with: U) -> [T; { _ }]
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);