Home
last modified time | relevance | path

Searched refs:transmute_mut (Results 1 – 3 of 3) sorted by relevance

/linux/rust/zerocopy/src/
H A Dmacros.rs539 macro_rules! transmute_mut { macro
572 t.transmute_mut()
1588 let x: &mut [[u8; 2]; 4] = transmute_mut!(&mut array_of_u8s); in test_transmute_mut()
1590 let x: &mut [u8; 8] = transmute_mut!(&mut array_of_arrays); in test_transmute_mut()
1596 let x: &mut [u8; 8] = transmute_mut!(&mut array_of_arrays); in test_transmute_mut()
1603 let x: &mut Nkl<[[u8; 2]; 4]> = transmute_mut!(&mut array_of_u8s); in test_transmute_mut()
1605 let x: &mut Nkl<[u8; 8]> = transmute_mut!(&mut array_of_arrays); in test_transmute_mut()
1611 let x: &[u8; 8] = transmute_mut!(&mut u); in test_transmute_mut()
1617 let y: &u8 = transmute_mut!(&mut x); in test_transmute_mut()
1626 let x: &mut SliceDst<u8, U16> = transmute_mut!(slice_dst_of_u8s); in test_transmute_mut()
[all …]
/linux/rust/zerocopy/src/util/
H A Dmacro_util.rs811 pub fn transmute_mut(self) -> &'a mut Dst in transmute_mut() method
845 unsafe { crate::util::transmute_mut::<_, _, (_, (_, _))>(self.0) }; in try_transmute_mut()
851 .map(|dst| unsafe { crate::util::transmute_mut::<_, _, (_, (_, _))>(dst) }) in try_transmute_mut()
856 crate::util::transmute_mut::<_, _, (_, (_, _))>(err.into_src()) in try_transmute_mut()
899 fn transmute_mut(self) -> &'a mut Self::Dst; in transmute_mut() method
910 fn transmute_mut(self) -> &'a mut Dst { in transmute_mut() function
H A Dmod.rs356 pub(crate) unsafe fn transmute_mut<Src, Dst, R>(src: &mut Src) -> &mut Dst in transmute_mut() function