Apply index-operation to wrapped slice:
(&'a self, idx: I)
| 169 | { |
| 170 | // Apply index-operation to wrapped slice: |
| 171 | pub fn idx<'a, I>(&'a self, idx: I) -> VOL<&'a I::Output, A> |
| 172 | where |
| 173 | I: SliceIndex<[T]>, |
| 174 | T: 'a, |
| 175 | { |
| 176 | self.map(|slice| slice.index(idx)) |
| 177 | } |
| 178 | |
| 179 | // Apply mutable index-operation to wrapped slice: |
| 180 | pub fn idxmut<'a, I>(&'a mut self, idx: I) -> VOL<&mut I::Output, A> |