pub trait Splat<T> {
fn splat(_: T) -> Self;
}
Expand description
splat: copy the argument into all elements
let a = T4::splat(42);
assert_eq!(a, T4(42, 42, 42, 42));
pub trait Splat<T> {
fn splat(_: T) -> Self;
}
splat: copy the argument into all elements
let a = T4::splat(42);
assert_eq!(a, T4(42, 42, 42, 42));