Lines Matching full:unaligned

27 // - `Unaligned`: `()` has alignment 1.
32 unsafe_impl!((): Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned);
41 // - `Unaligned` (`u8` and `i8` only): The reference [2] specifies the size of
68 unsafe_impl!(u8: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned);
69 unsafe_impl!(i8: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned);
96 // - `Unaligned`: Per the reference [1], "[a]n object with the boolean type has
101 const _: () = unsafe { unsafe_impl!(bool: Immutable, FromZeros, IntoBytes, Unaligned) };
151 // - `FromZeros`, `IntoBytes`, `Unaligned`: `[u8]` is `FromZeros`, `IntoBytes`,
152 // and `Unaligned`.
165 const _: () = unsafe { unsafe_impl!(str: Immutable, FromZeros, IntoBytes, Unaligned) };
200 // - `Unaligned`: `NonZeroU8` and `NonZeroI8` document that `Option<NonZeroU8>`
227 unsafe_impl!(NonZeroU8: Immutable, IntoBytes, Unaligned);
228 unsafe_impl!(NonZeroI8: Immutable, IntoBytes, Unaligned);
261 // - `Unaligned`: `NonZeroU8` and `NonZeroI8` document that `Option<NonZeroU8>`
282 unsafe_impl!(Option<NonZeroU8>: TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned);
283 unsafe_impl!(Option<NonZeroI8>: TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned);
472 // alignment is 1. Thus, it is sound to implement `Unaligned`.
488 unsafe_impl!(AtomicBool: Unaligned);
489 unsafe_impl!(AtomicU8: Unaligned);
490 unsafe_impl!(AtomicI8: Unaligned);
649 // - `Unaligned`: Per the preceding reference, `PhantomData` has alignment 1.
659 unsafe_impl!(T: ?Sized => Unaligned for PhantomData<T>);
683 const _: () = unsafe { unsafe_impl!(T: Unaligned => Unaligned for Wrapping<T>) };
715 const _: () = unsafe { unsafe_impl!(T: Unaligned => Unaligned for CoreMaybeUninit<T>) };
748 const _: () = unsafe { unsafe_impl!(T: ?Sized + Unaligned => Unaligned for ManuallyDrop<T>) };
837 const _: () = unsafe { unsafe_impl!(T: ?Sized + Unaligned => Unaligned for Cell<T>) };
849 const _: () = unsafe { unsafe_impl!(T: ?Sized + Unaligned => Unaligned for UnsafeCell<T>) };
885 // of `T`", `[T]` and `[T; N]` are `Unaligned` if `T` is.
908 unsafe_impl!(const N: usize, T: Unaligned => Unaligned for [T; N]);
939 unsafe_impl!(T: Unaligned => Unaligned for [T]);
1273 // guaranteed to be `Unaligned`.
1917 Unaligned in test_impls()
1926 Unaligned in test_impls()
1935 Unaligned in test_impls()
1944 !Unaligned in test_impls()
1953 !Unaligned in test_impls()
1962 !Unaligned in test_impls()
1971 !Unaligned in test_impls()
1980 !Unaligned in test_impls()
1989 !Unaligned in test_impls()
1998 !Unaligned in test_impls()
2007 !Unaligned in test_impls()
2016 !Unaligned in test_impls()
2025 !Unaligned in test_impls()
2035 !Unaligned in test_impls()
2044 !Unaligned in test_impls()
2053 !Unaligned in test_impls()
2063 !Unaligned in test_impls()
2071 Unaligned, in test_impls()
2081 !Unaligned in test_impls()
2089 Unaligned, in test_impls()
2098 Unaligned, in test_impls()
2107 Unaligned, in test_impls()
2117 !Unaligned in test_impls()
2125 !Unaligned in test_impls()
2133 !Unaligned in test_impls()
2141 !Unaligned in test_impls()
2149 !Unaligned in test_impls()
2157 !Unaligned in test_impls()
2165 !Unaligned in test_impls()
2173 !Unaligned in test_impls()
2181 !Unaligned in test_impls()
2189 !Unaligned in test_impls()
2192 …tion<NonZeroU8>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned); in test_impls()
2193 …tion<NonZeroI8>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned); in test_impls()
2194 …on<NonZeroU16>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, !Unaligned); in test_impls()
2195 …on<NonZeroI16>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, !Unaligned); in test_impls()
2196 …on<NonZeroU32>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, !Unaligned); in test_impls()
2197 …on<NonZeroI32>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, !Unaligned); in test_impls()
2198 …on<NonZeroU64>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, !Unaligned); in test_impls()
2199 …on<NonZeroI64>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, !Unaligned); in test_impls()
2200 …n<NonZeroU128>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, !Unaligned); in test_impls()
2201 …n<NonZeroI128>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, !Unaligned); in test_impls()
2202 …<NonZeroUsize>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, !Unaligned); in test_impls()
2203 …<NonZeroIsize>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, !Unaligned); in test_impls()
2221 …tZerocopy>>>: KnownLayout, Immutable, TryFromBytes, FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2222 …ocopy>]>>: KnownLayout, !Immutable, !TryFromBytes, !FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2223 …otZerocopy>>: KnownLayout, Immutable, TryFromBytes, FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2224 …erocopy>]>: KnownLayout, Immutable, !TryFromBytes, !FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2225 …otZerocopy>>: KnownLayout, Immutable, TryFromBytes, FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2226 …erocopy>]>: KnownLayout, Immutable, !TryFromBytes, !FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2227 …tZerocopy>>>: KnownLayout, TryFromBytes, FromZeros, Immutable, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2228 …rocopy>]>>: KnownLayout, Immutable, !TryFromBytes, !FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2229 …Option<fn()>: KnownLayout, Immutable, TryFromBytes, FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2230 …<FnManyArgs>: KnownLayout, Immutable, TryFromBytes, FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2231 …rn "C" fn()>: KnownLayout, Immutable, TryFromBytes, FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2232 …CFnManyArgs>: KnownLayout, Immutable, TryFromBytes, FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2234 …ta<NotZerocopy>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned); in test_impls()
2235 …UnsafeCell<()>>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned); in test_impls()
2236 …antomData<[u8]>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned); in test_impls()
2238 …anuallyDrop<u8>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned); in test_impls()
2241 …allyDrop<bool>: KnownLayout, Immutable, TryFromBytes, FromZeros, IntoBytes, Unaligned, !FromBytes); in test_impls()
2242 …uallyDrop<[u8]>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned); in test_impls()
2245 …lyDrop<[bool]>: KnownLayout, Immutable, TryFromBytes, FromZeros, IntoBytes, Unaligned, !FromBytes); in test_impls()
2246 …erocopy>: !Immutable, !TryFromBytes, !KnownLayout, !FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2247 …erocopy]>: KnownLayout, !Immutable, !TryFromBytes, !FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2248 …nsafeCell<()>>: KnownLayout, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned, !Immutable); in test_impls()
2249 …safeCell<u8>]>: KnownLayout, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned, !Immutable); in test_impls()
2250 …p<[UnsafeCell<bool>]>: KnownLayout, TryFromBytes, FromZeros, IntoBytes, Unaligned, !Immutable, !Fr… in test_impls()
2252 …aybeUninit<u8>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, Unaligned, !IntoBytes); in test_impls()
2253 …NotZerocopy>: KnownLayout, TryFromBytes, FromZeros, FromBytes, !Immutable, !IntoBytes, !Unaligned); in test_impls()
2254 …ninit<UnsafeCell<()>>: KnownLayout, TryFromBytes, FromZeros, FromBytes, Unaligned, !Immutable, !In… in test_impls()
2256 …s!(Wrapping<u8>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned); in test_impls()
2259 …Wrapping<bool>: KnownLayout, Immutable, TryFromBytes, FromZeros, IntoBytes, Unaligned, !FromBytes); in test_impls()
2260 …Zerocopy>: KnownLayout, !Immutable, !TryFromBytes, !FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2261 …nsafeCell<()>>: KnownLayout, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned, !Immutable); in test_impls()
2263 …ls!(Unalign<u8>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned); in test_impls()
2266 …(Unalign<bool>: KnownLayout, Immutable, TryFromBytes, FromZeros, IntoBytes, Unaligned, !FromBytes); in test_impls()
2267 …assert_impls!(Unalign<NotZerocopy>: KnownLayout, Unaligned, !Immutable, !TryFromBytes, !FromZeros,… in test_impls()
2276 Unaligned in test_impls()
2284 Unaligned, in test_impls()
2287 …Zerocopy]: KnownLayout, !Immutable, !TryFromBytes, !FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2295 Unaligned, in test_impls()
2304 !Unaligned in test_impls()
2313 Unaligned, in test_impls()
2322 !Unaligned in test_impls()
2325 … NotZerocopy: KnownLayout, Immutable, TryFromBytes, FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2326 … NotZerocopy: KnownLayout, Immutable, TryFromBytes, FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2327 …tZerocopy]: KnownLayout, Immutable, !TryFromBytes, !FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2328 …tZerocopy]: KnownLayout, Immutable, !TryFromBytes, !FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2329 … dyn Debug: KnownLayout, Immutable, !TryFromBytes, !FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2330 … dyn Debug: KnownLayout, Immutable, !TryFromBytes, !FromZeros, !FromBytes, !IntoBytes, !Unaligned); in test_impls()
2340 …impls!($typ: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes, !Unaligned); )* in test_impls()