Home
last modified time | relevance | path

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

/linux/rust/zerocopy/src/
H A Dmacros.rs1274 let array_of_u8s = [0u8, 1, 2, 3, 4, 5, 6, 7]; in test_transmute() localVariable
1276 let x: [[u8; 2]; 4] = transmute!(array_of_u8s); in test_transmute()
1279 assert_eq!(x, array_of_u8s); in test_transmute()
1282 let x: [[u8; 2]; 3] = transmute!(#![allow(shrink)] array_of_u8s); in test_transmute()
1332 let array_of_u8s = [0u8, 1, 2, 3, 4, 5, 6, 7]; in test_transmute_ref() localVariable
1334 let x: &[[u8; 2]; 4] = transmute_ref!(&array_of_u8s); in test_transmute_ref()
1337 assert_eq!(*x, array_of_u8s); in test_transmute_ref()
1347 let array_of_u8s = [0u8, 1, 2, 3, 4, 5, 6, 7]; in test_transmute_ref() localVariable
1350 let x: &[[u8; 2]] = transmute_ref!(&array_of_u8s); in test_transmute_ref()
1512 let array_of_u8s = [0u8, 1, 2, 3, 4, 5, 6, 7]; in test_try_transmute_ref() localVariable
[all …]