(val: &'a mut T)
| 32 | /// Create `InOutBuf` from a single mutable reference. |
| 33 | #[inline(always)] |
| 34 | pub fn from_mut(val: &'a mut T) -> InOutBuf<'a, 'a, T> { |
| 35 | let p = ptr::from_mut(val); |
| 36 | Self { |
| 37 | in_ptr: p, |
| 38 | out_ptr: p, |
| 39 | len: 1, |
| 40 | _pd: PhantomData, |
| 41 | } |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | impl<'inp, 'out, T> IntoIterator for InOutBuf<'inp, 'out, T> { |
nothing calls this directly
no outgoing calls
no test coverage detected