(&mut self)
| 13 | impl<T: Int, P: NoUninit> Encoder<P> for IntEncoder<T> { |
| 14 | #[inline(always)] |
| 15 | fn as_primitive(&mut self) -> Option<&mut VecImpl<P>> { |
| 16 | use std::mem::*; |
| 17 | assert_eq!(align_of::<T>(), align_of::<P>()); |
| 18 | assert_eq!(size_of::<T>(), size_of::<P>()); |
| 19 | // Safety: size/align are equal, T: Int implies Pod, and caller isn't reading P which may be NonZero. |
| 20 | unsafe { Some(transmute(&mut self.0)) } |
| 21 | } |
| 22 | |
| 23 | #[inline(always)] |
| 24 | fn encode(&mut self, p: &P) { |