Home
last modified time | relevance | path

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

/linux/rust/zerocopy-derive/
H A Drepr.rs71 pub(crate) type StructUnionRepr = Repr<Infallible, NonZeroU32>; typedef
746 test!(#[repr(transparent)] => StructUnionRepr::Transparent(s())); in test()
747 test!(#[repr()] => StructUnionRepr::Compound(Rust.into(), None)); in test()
748 … test!(#[repr(packed)] => StructUnionRepr::Compound(Rust.into(), Some(Packed(nz(1)).into()))); in test()
749 … test!(#[repr(packed(2))] => StructUnionRepr::Compound(Rust.into(), Some(Packed(nz(2)).into()))); in test()
750 … test!(#[repr(align(1))] => StructUnionRepr::Compound(Rust.into(), Some(Align(nz(1)).into()))); in test()
751 … test!(#[repr(align(2))] => StructUnionRepr::Compound(Rust.into(), Some(Align(nz(2)).into()))); in test()
752 test!(#[repr(C)] => StructUnionRepr::Compound(C.into(), None)); in test()
753 … test!(#[repr(C, packed)] => StructUnionRepr::Compound(C.into(), Some(Packed(nz(1)).into()))); in test()
754 … test!(#[repr(C, packed(2))] => StructUnionRepr::Compound(C.into(), Some(Packed(nz(2)).into()))); in test()
[all …]
/linux/rust/zerocopy-derive/derive/
H A Dunaligned.rs7 repr::{EnumRepr, StructUnionRepr},
25 let repr = StructUnionRepr::from_attrs(&ctx.ast.attrs)?; in derive_unaligned_struct()
65 let repr = StructUnionRepr::from_attrs(&ctx.ast.attrs)?; in derive_unaligned_union()
H A Dinto_bytes.rs8 repr::{EnumRepr, StructUnionRepr},
22 let repr = StructUnionRepr::from_attrs(&ctx.ast.attrs)?; in derive_into_bytes_struct()
152 let repr = StructUnionRepr::from_attrs(&ctx.ast.attrs)?; in derive_into_bytes_union()
H A Dknown_layout.rs8 repr::StructUnionRepr,
14 repr: &StructUnionRepr, in derive_known_layout_for_repr_c_struct() argument
255 let repr = StructUnionRepr::from_attrs(&ctx.ast.attrs)?; in derive()
H A Dmod.rs14 repr::StructUnionRepr,
95 let repr = StructUnionRepr::from_attrs(&ctx.ast.attrs)?; in derive_split_at()
H A Dtry_from_bytes.rs11 repr::{EnumRepr, StructUnionRepr},
470 let is_repr_c = StructUnionRepr::from_attrs(&ctx.ast.attrs) in derive_has_field_struct_union()
520 let fields_preserve_alignment = StructUnionRepr::from_attrs(&ctx.ast.attrs) in derive_has_field_struct_union()
608 StructUnionRepr::from_attrs(&ctx.ast.attrs).map(|repr| repr.is_c()).unwrap_or(false); in derive_try_from_bytes_union()