Trait tuple::Splat

source ·
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));

Required Methods§

Implementations on Foreign Types§

Implementors§