Home
last modified time | relevance | path

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

/linux/rust/zerocopy-derive/derive/
H A Dknown_layout.rs19 let (_vis, trailing_field_name, trailing_field_ty) = trailing_field; in derive_known_layout_for_repr_c_struct()
39 let make_methods = |trailing_field_ty| { in derive_known_layout_for_repr_c_struct()
76 …let trailing = <#trailing_field_ty as #zerocopy_crate::KnownLayout>::raw_from_ptr_len(bytes, meta); in derive_known_layout_for_repr_c_struct()
84 <#trailing_field_ty>::pointer_to_metadata(ptr as *mut _) in derive_known_layout_for_repr_c_struct()
90 let methods = make_methods(*trailing_field_ty); in derive_known_layout_for_repr_c_struct()
94 … type PointerMetadata = <#trailing_field_ty as #zerocopy_crate::KnownLayout>::PointerMetadata; in derive_known_layout_for_repr_c_struct()
117 <#trailing_field_ty as #zerocopy_crate::KnownLayout>::LAYOUT in derive_known_layout_for_repr_c_struct()
177 let trailing_field_ty = quote! { in derive_known_layout_for_repr_c_struct() localVariable
184 <#trailing_field_ty as #zerocopy_crate::KnownLayout>::MaybeUninit in derive_known_layout_for_repr_c_struct()
216 <#trailing_field_ty as #zerocopy_crate::KnownLayout>::MaybeUninit in derive_known_layout_for_repr_c_struct()
[all …]
/linux/rust/zerocopy/src/util/
H A Dmacro_util.rs968 (#[$cfg:meta] ($($ts:ty),* ; $trailing_field_ty:ty) => $expect:expr) => {{ in test_trailing_field_offset()
970 … struct Test($(#[allow(dead_code)] $ts,)* #[allow(dead_code)] $trailing_field_ty); in test_trailing_field_offset()
971 assert_eq!(test!(@offset $($ts),* ; $trailing_field_ty), $expect); in test_trailing_field_offset()
973 … (#[$cfg:meta] $(#[$cfgs:meta])* ($($ts:ty),* ; $trailing_field_ty:ty) => $expect:expr) => { in test_trailing_field_offset()
974 test!(#[$cfg] ($($ts),* ; $trailing_field_ty) => $expect); in test_trailing_field_offset()
975 test!($(#[$cfgs])* ($($ts),* ; $trailing_field_ty) => $expect); in test_trailing_field_offset()