(&mut self, pos: usize)
| 134 | /// If `pos` greater or equal to array length. |
| 135 | #[inline(always)] |
| 136 | pub fn get(&mut self, pos: usize) -> InOut<'_, '_, T> { |
| 137 | assert!(pos < N::USIZE); |
| 138 | unsafe { |
| 139 | InOut { |
| 140 | in_ptr: self.in_ptr.cast::<T>().add(pos), |
| 141 | out_ptr: self.out_ptr.cast::<T>().add(pos), |
| 142 | _pd: PhantomData, |
| 143 | } |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | /// Convert `InOut` array to `InOutBuf`. |
| 148 | #[inline(always)] |
no outgoing calls