pub trait Splat<T> {
// Required method
fn splat(t: T) -> Self;
}
Expand description
splat: copy the argument into all elements
let a = T4::splat(42);
assert_eq!(a, T4(42, 42, 42, 42));
Required Methods§
Object Safety§
This trait is not object safe.