Lines Matching refs:Compound

34     Compound(Spanned<CompoundRepr<Prim>>, Option<Spanned<AlignRepr<Packed>>>),  enumerator
91 Compound(Spanned { t: repr, span: _ }, _align) => match repr { in repr_type_name()
118 matches!(self, Repr::Compound(Spanned { t: C, span: _ }, _align)) in is_c()
123 matches!(self, Repr::Compound(Spanned { t: Primitive(_), span: _ }, _align)) in is_primitive()
129 if let Compound(_, Some(Spanned { t: Packed(p), span: _ })) = self { in get_packed()
139 if let Compound(_, Some(Spanned { t: Align(n), span })) = self { in get_align()
177 if let Compound(Spanned { t: Primitive(p), span: _ }, _align) = self { in get_primitive()
204 Compound(repr, align) => { in to_tokens()
499 Ok(Repr::Compound( in from_attrs_inner()
705 (Repr::Compound(sc, sa), Repr::Compound(oc, oa)) => (sc, sa) == (oc, oa), in eq()
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()
755 … test!(#[repr(C, align(1))] => StructUnionRepr::Compound(C.into(), Some(Align(nz(1)).into()))); in test()
756 … test!(#[repr(C, align(2))] => StructUnionRepr::Compound(C.into(), Some(Align(nz(2)).into()))); in test()
759 test!(#[repr()] => EnumRepr::Compound(Rust.into(), None)); in test()
760 test!(#[repr(align(1))] => EnumRepr::Compound(Rust.into(), Some(Align(nz(1)).into()))); in test()
761 test!(#[repr(align(2))] => EnumRepr::Compound(Rust.into(), Some(Align(nz(2)).into()))); in test()
766 test!(#[repr($r)] => EnumRepr::Compound($var.into(), None)); in test()
767 … test!(#[repr($r, align(1))] => EnumRepr::Compound($var.into(), Some(Align(nz(1)).into()))); in test()
768 … test!(#[repr($r, align(2))] => EnumRepr::Compound($var.into(), Some(Align(nz(2)).into()))); in test()