orx_fixed_vec/
concurrent_iter.rs1use crate::FixedVec;
2use orx_concurrent_iter::{
3 ConcurrentCollection, IntoConcurrentIter,
4 implementations::{ConIterSlice, ConIterVec},
5};
6
7impl<T> IntoConcurrentIter for FixedVec<T>
8where
9 T: Send + Sync,
10{
11 type Item = T;
12
13 type IntoIter = ConIterVec<T>;
14
15 fn into_con_iter(self) -> Self::IntoIter {
16 self.data.into_con_iter()
17 }
18}
19
20impl<'a, T> IntoConcurrentIter for &'a FixedVec<T>
21where
22 T: Send + Sync,
23{
24 type Item = &'a T;
25
26 type IntoIter = ConIterSlice<'a, T>;
27
28 fn into_con_iter(self) -> Self::IntoIter {
29 self.data.con_iter()
30 }
31}