Custom pointer type which contains one immutable (input) and one mutable (output) pointer, which are either equal or non-overlapping.
| 5 | /// Custom pointer type which contains one immutable (input) and one mutable |
| 6 | /// (output) pointer, which are either equal or non-overlapping. |
| 7 | pub struct InOut<'inp, 'out, T> { |
| 8 | pub(crate) in_ptr: *const T, |
| 9 | pub(crate) out_ptr: *mut T, |
| 10 | pub(crate) _pd: PhantomData<(&'inp T, &'out mut T)>, |
| 11 | } |
| 12 | |
| 13 | impl<'inp, 'out, T> InOut<'inp, 'out, T> { |
| 14 | /// Reborrow `self`. |
nothing calls this directly
no outgoing calls
no test coverage detected