impl FusedIterator for ArrayWindows

(cherry picked from commit 08cd2ac33d)
This commit is contained in:
Josh Stone 2026-01-24 11:10:40 -08:00
parent 90e99bdd32
commit 622cdb3575

View file

@ -2260,6 +2260,9 @@ impl<T, const N: usize> ExactSizeIterator for ArrayWindows<'_, T, N> {
} }
} }
#[stable(feature = "array_windows", since = "1.94.0")]
impl<T, const N: usize> FusedIterator for ArrayWindows<'_, T, N> {}
/// An iterator over a slice in (non-overlapping) chunks (`chunk_size` elements at a /// An iterator over a slice in (non-overlapping) chunks (`chunk_size` elements at a
/// time), starting at the end of the slice. /// time), starting at the end of the slice.
/// ///