We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Repeat
RepeatN
1 parent ca92786 commit 70ae0f9Copy full SHA for 70ae0f9
src/iter/repeat.rs
@@ -4,7 +4,7 @@ use std::iter;
4
5
/// Iterator adaptor for [the `repeat()` function](fn.repeat.html).
6
#[derive(Debug, Clone)]
7
-pub struct Repeat<T: Clone + Send> {
+pub struct Repeat<T> {
8
element: T,
9
}
10
@@ -99,7 +99,7 @@ impl<T: Clone + Send> UnindexedProducer for RepeatProducer<T> {
99
100
/// Iterator adaptor for [the `repeat_n()` function](fn.repeat_n.html).
101
102
-pub struct RepeatN<T: Clone + Send> {
+pub struct RepeatN<T> {
103
104
count: usize,
105
0 commit comments