Home
last modified time | relevance | path

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

/linux/rust/zerocopy-derive/
H A Drepr.rs13 num::NonZeroU32,
67 Align(NonZeroU32),
71 pub(crate) type StructUnionRepr = Repr<Infallible, NonZeroU32>;
136 pub(crate) fn get_align(&self) -> Option<Spanned<NonZeroU32>> { in get_align() argument
166 impl<Prim> Repr<Prim, NonZeroU32> {
198 Packed: With<NonZeroU32> + Copy,
245 impl<Packed: With<NonZeroU32> + Copy> ToTokens for Spanned<AlignRepr<Packed>> {
252 let to_index = |n: NonZeroU32| syn::Index { index: n.get(), span: self.span }; in to_tokens()
286 Align(NonZeroU32),
287 PackedN(NonZeroU32),
[all …]
H A Dutil.rs11 use std::num::NonZeroU32;
581 Repr::<PrimitiveRepr, NonZeroU32>::from_attrs(&self.ctx.ast.attrs).unwrap(); in build()
/linux/rust/zerocopy/src/
H A Dimpls.rs232 unsafe_impl!(NonZeroU32: Immutable, IntoBytes);
245 NonZeroU32[u32],
287 unsafe_impl!(Option<NonZeroU32>: TryFromBytes, FromZeros, FromBytes, IntoBytes);
1519 NonZeroU8, NonZeroI8, NonZeroU16, NonZeroI16, NonZeroU32, in test_impls()
2128 NonZeroU32: KnownLayout, in test_impls()
2196 …assert_impls!(Option<NonZeroU32>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, Into… in test_impls()
H A Dlib.rs381 NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU8, NonZeroUsize, Wrapping,
1107 NonZeroU8, NonZeroI8, NonZeroU16, NonZeroI16, NonZeroU32, NonZeroI32,
7302 c: Option<NonZeroU32>, in test_to_methods()
/linux/rust/pin-init/src/
H A Dlib.rs