Home
last modified time | relevance | path

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

/linux/rust/zerocopy-derive/
H A Drepr.rs48 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>> {
[all …]
H A Dutil.rs21 use crate::repr::{CompoundRepr, EnumRepr, PrimitiveRepr, Repr, Spanned};
581 Repr::<PrimitiveRepr, NonZeroU32>::from_attrs(&self.ctx.ast.attrs).unwrap(); in build()
795 use PrimitiveRepr::*; in enum_size_from_repr()