Lines Matching refs:PrimitiveRepr
48 pub(crate) enum PrimitiveRepr { enum
74 pub(crate) type EnumRepr = Repr<PrimitiveRepr, Infallible>;
84 Prim: Copy + With<PrimitiveRepr>, in repr_type_name() argument
87 use PrimitiveRepr::*; in repr_type_name()
173 impl<Packed> Repr<PrimitiveRepr, Packed> {
174 fn get_primitive(&self) -> Option<&PrimitiveRepr> { in get_primitive() argument
186 matches!(self.get_primitive(), Some(PrimitiveRepr::U8)) in is_u8()
191 matches!(self.get_primitive(), Some(PrimitiveRepr::I8)) in is_i8()
197 Prim: With<PrimitiveRepr> + Copy,
214 impl<Prim: With<PrimitiveRepr> + Copy> ToTokens for Spanned<CompoundRepr<Prim>> {
225 impl ToTokens for Spanned<PrimitiveRepr> {
227 use PrimitiveRepr::*; in to_tokens()
306 impl<Prim: With<PrimitiveRepr>> TryFrom<RawRepr> for CompoundRepr<Prim> {
318 U8 => Ok(PrimitiveRepr::U8), in try_from()
319 U16 => Ok(PrimitiveRepr::U16), in try_from()
320 U32 => Ok(PrimitiveRepr::U32), in try_from()
321 U64 => Ok(PrimitiveRepr::U64), in try_from()
322 U128 => Ok(PrimitiveRepr::U128), in try_from()
323 Usize => Ok(PrimitiveRepr::Usize), in try_from()
324 I8 => Ok(PrimitiveRepr::I8), in try_from()
325 I16 => Ok(PrimitiveRepr::I16), in try_from()
326 I32 => Ok(PrimitiveRepr::I32), in try_from()
327 I64 => Ok(PrimitiveRepr::I64), in try_from()
328 I128 => Ok(PrimitiveRepr::I128), in try_from()
329 Isize => Ok(PrimitiveRepr::Isize), in try_from()
458 Prim: With<PrimitiveRepr>, in from_attrs_inner() argument
510 Prim: With<PrimitiveRepr>, in from_attrs() argument
648 impl Inhabited for PrimitiveRepr {} implementation
743 use PrimitiveRepr::*; in test()