Lines Matching refs:ty
1475 ($test_name:ident: $ty:ty) => {
1479 const S: usize = core::mem::size_of::<$ty>();
1481 test::<$ty, _, N>([None]);
1487 test::<[$ty], _, N>([Some(0), Some(1), Some(2), Some(3)]);
1488 test::<SliceDst<$ty>, _, N>([Some(0), Some(1), Some(2), Some(3)]);
1490 test::<[$ty], _, N>([None, Some(0), Some(1), Some(2), Some(3)]);
1491 test::<SliceDst<$ty>, _, N>([None, Some(0), Some(1), Some(2), Some(3)]);
1495 ($ty:ident) => {
1496 test!($ty: $ty);
1498 ($($ty:ident),*) => { $(test!($ty);)* }
1510 ($ty:ty, $bytes:expr, $elems:expr, $expect:expr) => {{ in test_try_cast_into_explicit_count()
1514 ptr.try_cast_into::<$ty, BecauseImmutable>(CastType::Prefix, Some($elems)); in test_try_cast_into_explicit_count()