Home
last modified time | relevance | path

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

/linux/rust/zerocopy-derive/derive/
H A Dknown_layout.rs116 #(#zerocopy_crate::DstLayout::for_type::<#leading_fields_tys>(),)* in derive_known_layout_for_repr_c_struct()
289 … const LAYOUT: #zerocopy_crate::DstLayout = #zerocopy_crate::DstLayout::for_type::<Self>(); in derive()
/linux/rust/zerocopy/src/
H A Dlib.rs6603 let expected = DstLayout::for_type::<KL01>(); in test_known_layout_derive()
6614 let expected = DstLayout::for_type::<KL01Align>(); in test_known_layout_derive()
6625 let expected = DstLayout::for_type::<KL01Packed>(); in test_known_layout_derive()
6638 let expected = DstLayout::for_type::<KL01PackedN>(); in test_known_layout_derive()
6649 let expected = DstLayout::for_type::<KL03>(); in test_known_layout_derive()
6660 let expected = DstLayout::for_type::<KL03Align>(); in test_known_layout_derive()
6671 let expected = DstLayout::for_type::<KL03Packed>(); in test_known_layout_derive()
6684 let expected = DstLayout::for_type::<KL03PackedN>(); in test_known_layout_derive()
6717 .extend(DstLayout::for_type::<NotKnownLayout<AU32>>(), None) in test_known_layout_derive()
6733 .extend(DstLayout::for_type::<NotKnownLayout<AU32>>(), None) in test_known_layout_derive()
[all …]
H A Dlayout.rs209 pub const fn for_type<T>() -> DstLayout { in for_type() method
234 Self::for_type::<T>().assume_shallow_unpadded() in for_unpadded_type()
1130 let base = DstLayout::for_type::<u8>(); in test_dst_layout_extend_sized_with_sized()
1131 let trailing_field = DstLayout::for_type::<elain::Align<$n>>(); in test_dst_layout_extend_sized_with_sized()
1197 let base = DstLayout::for_type::<u8>(); in test_dst_layout_extend_sized_with_dst()
/linux/rust/zerocopy/src/util/
H A Dmacros.rs459 const LAYOUT: crate::DstLayout = crate::DstLayout::for_type::<$ty>();