Home
last modified time | relevance | path

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

/linux/rust/zerocopy-derive/
H A Drepr.rs34 Compound(Spanned<CompoundRepr<Prim>>, Option<Spanned<AlignRepr<Packed>>>),
65 pub(crate) enum AlignRepr<Packed> { enum
127 use AlignRepr::*; in get_packed()
137 use AlignRepr::*; in get_align()
245 impl<Packed: With<NonZeroU32> + Copy> ToTokens for Spanned<AlignRepr<Packed>> {
247 use AlignRepr::*; in to_tokens()
344 impl<Pcked: With<NonZeroU32>> TryFrom<RawRepr> for AlignRepr<Pcked> { implementation
346 fn try_from(raw: RawRepr) -> Result<AlignRepr<Pcked>, FromRawReprError<UnsupportedReprError>> { in try_from()
358 .map(AlignRepr::Packed) in try_from()
360 Align(n) => Ok(AlignRepr::Align(n)), in try_from()
[all …]