Searched refs:try_transmute (Results 1 – 2 of 2) sorted by relevance
| /linux/rust/zerocopy/src/ |
| H A D | macros.rs | 628 macro_rules! try_transmute { macro 648 $crate::util::macro_util::try_transmute::<_, _>(e) 1437 let x: Result<[[u8; 2]; 4], _> = try_transmute!(array_of_bools); in test_try_transmute() 1439 let x: Result<[bool; 8], _> = try_transmute!(array_of_arrays); in test_try_transmute() 1443 let x: Result<usize, _> = try_transmute!(UnsafeCell::new(1usize)); in test_try_transmute() 1445 let x: Result<UnsafeCell<usize>, _> = try_transmute!(1usize); in test_try_transmute() 1447 let x: Result<UnsafeCell<isize>, _> = try_transmute!(UnsafeCell::new(1usize)); in test_try_transmute() 1462 let x: Result<usize, _> = try_transmute!(PanicOnDrop(1usize)); in test_try_transmute() 1468 let y: Result<bool, _> = try_transmute!(PanicOnDrop(2u8)); in test_try_transmute() 1679 let _: usize = try_transmute!({ in test_macros_evaluate_args_once()
|
| /linux/rust/zerocopy/src/util/ |
| H A D | macro_util.rs | 525 pub fn try_transmute<Src, Dst>(src: Src) -> Result<Dst, ValidityError<Src, Dst>> in try_transmute() function
|