orx_concurrent_iter/iter/constructors/implementors/
array.rs

1use crate::{ConIterOfSlice, ConcurrentIterable};
2
3impl<const N: usize, T: Send + Sync> ConcurrentIterable for [T; N] {
4    type Item<'i> = &'i T where Self: 'i;
5
6    type ConIter<'i> = ConIterOfSlice<'i, T> where Self: 'i;
7
8    fn con_iter(&self) -> Self::ConIter<'_> {
9        Self::ConIter::new(self.as_slice())
10    }
11}