Searched refs:Unalign (Results 1 – 5 of 5) sorted by relevance
| /linux/rust/zerocopy/src/ |
| H A D | wrappers.rs | 118 pub struct Unalign<T>(T); struct 123 impl_known_layout!(T => Unalign<T>); 150 impl_or_verify!(T => Unaligned for Unalign<T>); 151 impl_or_verify!(T: Immutable => Immutable for Unalign<T>); 153 T: TryFromBytes => TryFromBytes for Unalign<T>; 156 impl_or_verify!(T: FromZeros => FromZeros for Unalign<T>); 157 impl_or_verify!(T: FromBytes => FromBytes for Unalign<T>); 158 impl_or_verify!(T: IntoBytes => IntoBytes for Unalign<T>); 164 impl<T: Copy> Clone for Unalign<T> { implementation 166 fn clone(&self) -> Unalign<T> { in clone() [all …]
|
| H A D | impls.rs | 143 … let c = c.transmute_with::<Unalign<u32>, invariant::Valid, CastSizedExact, BecauseImmutable>(); 186 … let n = n.transmute_with::<Unalign<$prim>, invariant::Valid, CastSizedExact, BecauseImmutable>(); 1535 Unalign<bool> in test_impls() 1536 => @success Unalign::new(false), Unalign::new(true), in test_impls() 2263 …assert_impls!(Unalign<u8>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, … in test_impls() 2266 …assert_impls!(Unalign<bool>: KnownLayout, Immutable, TryFromBytes, FromZeros, IntoBytes, Unaligned… in test_impls() 2267 …assert_impls!(Unalign<NotZerocopy>: KnownLayout, Unaligned, !Immutable, !TryFromBytes, !FromZeros,… in test_impls()
|
| H A D | lib.rs | 5210 match Ref::<_, Unalign<Self>>::sized_from(source) { in read_from_bytes() 5268 match Ref::<_, Unalign<Self>>::sized_from_prefix(source) { in read_from_prefix() 5320 match Ref::<_, Unalign<Self>>::sized_from_suffix(source) { in read_from_suffix()
|
| /linux/rust/zerocopy/src/pointer/ |
| H A D | transmute.rs | 24 FromBytes, Immutable, IntoBytes, Unalign, 395 const _: () = unsafe { unsafe_impl_for_transparent_wrapper!(pub T => Unalign<T>) }; 403 const _: () = unsafe { unsafe_impl_invariants_eq!(T => T, Unalign<T>) };
|
| H A D | ptr.rs | 561 ) -> Ptr<'a, crate::Unalign<T>, (I::Aliasing, Aligned, I::Validity)> { in into_unalign()
|