Skip to content

Commit 09d1e42

Browse files
committed
Implement repetition for arrays
1 parent 5bba89f commit 09d1e42

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/runtime.rs

+8
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@ pub mod ext {
126126
}
127127
}
128128

129+
impl<'q, T: 'q, const N: usize> RepAsIteratorExt<'q> for [T; N] {
130+
type Iter = slice::Iter<'q, T>;
131+
132+
fn quote_into_iter(&'q self) -> (Self::Iter, HasIter) {
133+
(self.iter(), HasIter)
134+
}
135+
}
136+
129137
impl<'q, T: 'q> RepAsIteratorExt<'q> for Vec<T> {
130138
type Iter = slice::Iter<'q, T>;
131139

0 commit comments

Comments
 (0)