Home
last modified time | relevance | path

Searched refs:try_transmute_ref (Results 1 – 2 of 2) sorted by relevance

/linux/rust/zerocopy/src/
H A Dmacros.rs767 macro_rules! try_transmute_ref { macro
795 t.try_transmute_ref()
1481 let x: Result<&[[u8; 2]; 4], _> = try_transmute_ref!(array_of_bools); in test_try_transmute_ref()
1483 let x: Result<&[bool; 8], _> = try_transmute_ref!(array_of_arrays); in test_try_transmute_ref()
1489 let x: Result<&[[u8; 2]; 4], _> = try_transmute_ref!(array_of_bools); in test_try_transmute_ref()
1496 let x: Result<&[u8; 8], _> = try_transmute_ref!(&u); in test_try_transmute_ref()
1502 let y: Result<&u8, _> = try_transmute_ref!(&mut x); in test_try_transmute_ref()
1508 let x: Result<&Nkl<[[u8; 2]; 4]>, _> = try_transmute_ref!(&array_of_nkl_u8s); in test_try_transmute_ref()
1515 let x: Result<&[[u8; 2]], _> = try_transmute_ref!(&array_of_u8s); in test_try_transmute_ref()
1523 let x: Result<&SliceDst<U16, U16>, _> = try_transmute_ref!(slice_dst_of_u8s); in test_try_transmute_ref()
/linux/rust/zerocopy/src/util/
H A Dmacro_util.rs564 fn try_transmute_ref(self) -> Result<&'a Self::Dst, ValidityError<&'a Self::Src, Self::Dst>> in try_transmute_ref() method
591 fn try_transmute_ref( in try_transmute_ref() function
754 pub fn try_transmute_ref(self) -> Result<&'a Dst, ValidityError<&'a Src, Dst>> in try_transmute_ref() method
767 <Wrap<&'a Wrapping<Src>, &'a Wrapping<Dst>> as TryTransmuteRefDst<'a>>::try_transmute_ref( in try_transmute_ref()