Trait tuple::Splat [] [src]

pub trait Splat<T> {
    fn splat(_: T) -> Self;
}

splat: copy the argument into all elements ```

extern crate tuple;

use tuple::*;

fn main() {

let a = T4::splat(42); assert_eq!(a, T4(42, 42, 42, 42));

}

Required Methods

Implementors