Home
last modified time | relevance | path

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

/linux/rust/zerocopy/src/
H A Dmacros.rs342 macro_rules! transmute_ref { macro
402 t.transmute_ref()
1334 let x: &[[u8; 2]; 4] = transmute_ref!(&array_of_u8s); in test_transmute_ref()
1336 let x: &[u8; 8] = transmute_ref!(&array_of_arrays); in test_transmute_ref()
1343 const X: &'static [[u8; 2]; 4] = transmute_ref!(&ARRAY_OF_U8S); in test_transmute_ref()
1350 let x: &[[u8; 2]] = transmute_ref!(&array_of_u8s); in test_transmute_ref()
1361 const X_NKL: &Nkl<[[u8; 2]; 4]> = transmute_ref!(&ARRAY_OF_NKL_U8S); in test_transmute_ref()
1369 const fn transmute_ref<T, U>(t: &T) -> &U in test_transmute_ref() function
1374 transmute_ref!(t) in test_transmute_ref()
1381 const X_NKL: &Nkl<[[u8; 2]; 4]> = transmute_ref(&ARRAY_OF_NKL_U8S); in test_transmute_ref()
[all …]
/linux/rust/zerocopy/src/util/
H A Dmacro_util.rs727 pub const unsafe fn transmute_ref(self) -> &'a Dst { in transmute_ref() method
765 unsafe { crate::util::transmute_ref::<_, _, BecauseImmutable>(self.0) }; in try_transmute_ref()
774 |dst| unsafe { crate::util::transmute_ref::<_, _, BecauseImmutable>(dst) }, in try_transmute_ref()
782 crate::util::transmute_ref::<_, _, BecauseImmutable>(err.into_src()) in try_transmute_ref()
866 fn transmute_ref(self) -> &'a Self::Dst; in transmute_ref() method
877 fn transmute_ref(self) -> &'a Dst { in transmute_ref() function
H A Dmod.rs339 pub(crate) unsafe fn transmute_ref<Src, Dst, R>(src: &Src) -> &Dst in transmute_ref() function