orx-imp-vec 2.17.0

`ImpVec` stands for immutable push vector 👿, it is a data structure which allows appending elements with a shared reference.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::ImpVec;
use orx_concurrent_iter::IntoConcurrentIter;
use orx_fixed_vec::PinnedVec;

impl<'a, T, P> IntoConcurrentIter for &'a ImpVec<T, P>
where
    P: PinnedVec<T>,
    &'a P: IntoConcurrentIter<Item = &'a T>,
    T: Send + Sync,
{
    type Item = &'a T;

    type IntoIter = <&'a P as IntoConcurrentIter>::IntoIter;

    fn into_con_iter(self) -> Self::IntoIter {
        self.pinned().into_con_iter()
    }
}