1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! [tuplities](https://github.com/lucacappelletti94/tuplities) suite crate providing the `TupleReplicate` trait.
/// A trait for replicating a value into a tuple.
///
/// This trait allows creating a tuple where all elements are the same value.
/// The implementation is optimized to avoid unnecessary cloning: for empty tuples
/// and single-element tuples, no `Clone` bound is required. For tuples with 2+
/// elements, `Clone` is required but the original value is moved to the last
/// position to minimize clones.
///
/// Part of the [`tuplities`](https://docs.rs/tuplities/latest/tuplities/) crate.