mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-06 08:36:52 -04:00
impl TrustedLen for ArrayWindows
This commit is contained in:
@@ -2260,6 +2260,9 @@ impl<T, const N: usize> ExactSizeIterator for ArrayWindows<'_, T, N> {
|
||||
}
|
||||
}
|
||||
|
||||
#[unstable(feature = "trusted_len", issue = "37572")]
|
||||
unsafe impl<T, const N: usize> TrustedLen for ArrayWindows<'_, T, N> {}
|
||||
|
||||
#[stable(feature = "array_windows", since = "1.94.0")]
|
||||
impl<T, const N: usize> FusedIterator for ArrayWindows<'_, T, N> {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user