Returns an iterator that returns the values of `array.value(i)` for an iterator with each element `i`
(
&'a self,
indexes: impl Iterator<Item = Option<usize>> + 'a,
)
| 812 | |
| 813 | /// Returns an iterator that returns the values of `array.value(i)` for an iterator with each element `i` |
| 814 | pub fn take_iter<'a>( |
| 815 | &'a self, |
| 816 | indexes: impl Iterator<Item = Option<usize>> + 'a, |
| 817 | ) -> impl Iterator<Item = Option<T::Native>> + 'a { |
| 818 | indexes.map(|opt_index| opt_index.map(|index| self.value(index))) |
| 819 | } |
| 820 | |
| 821 | /// Returns an iterator that returns the values of `array.value(i)` for an iterator with each element `i` |
| 822 | /// # Safety |