Lines Matching refs:Repr

29 pub(crate) enum Repr<Prim, Packed> {  enum
71 pub(crate) type StructUnionRepr = Repr<Infallible, NonZeroU32>;
74 pub(crate) type EnumRepr = Repr<PrimitiveRepr, Infallible>;
76 impl<Prim, Packed> Repr<Prim, Packed> { impl
88 use Repr::*; in repr_type_name()
113 matches!(self, Repr::Transparent(_)) in is_transparent()
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()
128 use Repr::*; in get_packed()
138 use Repr::*; in get_align()
166 impl<Prim> Repr<Prim, NonZeroU32> { implementation
173 impl<Packed> Repr<PrimitiveRepr, Packed> { implementation
176 use Repr::*; in get_primitive()
195 impl<Prim, Packed> ToTokens for Repr<Prim, Packed> implementation
201 use Repr::*; in to_tokens()
455 impl<Prim, Packed> Repr<Prim, Packed> { implementation
456 fn from_attrs_inner(attrs: &[Attribute]) -> Result<Repr<Prim, Packed>, Spanned<FromAttrsError>> in from_attrs_inner()
497 Ok(Repr::Transparent(span)) in from_attrs_inner()
499 Ok(Repr::Compound( in from_attrs_inner()
507 impl<Prim, Packed> Repr<Prim, Packed> { impl
508 pub(crate) fn from_attrs(attrs: &[Attribute]) -> Result<Repr<Prim, Packed>, Error> in from_attrs()
513 Repr::from_attrs_inner(attrs).map_err(Into::into) in from_attrs()
701 impl<Prim: PartialEq, Packed: PartialEq> PartialEq for Repr<Prim, Packed> { implementation
702 fn eq(&self, other: &Repr<Prim, Packed>) -> bool { in eq()
704 (Repr::Transparent(_), Repr::Transparent(_)) => true, in eq()
705 (Repr::Compound(sc, sa), Repr::Compound(oc, oa)) => (sc, sa) == (oc, oa), in eq()
721 test!(@inner $(#[$attr])* => Repr => Ok($repr)); in test()
731 let expect: Result<Repr<_, _>, _> = $repr; in test()