Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 62f7a4e

Browse files
committedJun 19, 2024
core: implement UncheckedIterator for RepeatN
1 parent 387fd1f commit 62f7a4e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎core/src/iter/sources/repeat_n.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::iter::{FusedIterator, TrustedLen};
1+
use crate::iter::{FusedIterator, TrustedLen, UncheckedIterator};
22
use crate::mem::ManuallyDrop;
33
use crate::num::NonZero;
44

@@ -193,3 +193,5 @@ impl<A: Clone> FusedIterator for RepeatN<A> {}
193193

194194
#[unstable(feature = "trusted_len", issue = "37572")]
195195
unsafe impl<A: Clone> TrustedLen for RepeatN<A> {}
196+
#[unstable(feature = "trusted_len_next_unchecked", issue = "37572")]
197+
impl<A: Clone> UncheckedIterator for RepeatN<A> {}

0 commit comments

Comments
 (0)
Failed to load comments.