Lines Matching refs:Option

282     unsafe_impl!(Option<NonZeroU8>: TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned);
283 unsafe_impl!(Option<NonZeroI8>: TryFromBytes, FromZeros, FromBytes, IntoBytes, Unaligned);
284 assert_unaligned!(Option<NonZeroU8>, Option<NonZeroI8>);
285 unsafe_impl!(Option<NonZeroU16>: TryFromBytes, FromZeros, FromBytes, IntoBytes);
286 unsafe_impl!(Option<NonZeroI16>: TryFromBytes, FromZeros, FromBytes, IntoBytes);
287 unsafe_impl!(Option<NonZeroU32>: TryFromBytes, FromZeros, FromBytes, IntoBytes);
288 unsafe_impl!(Option<NonZeroI32>: TryFromBytes, FromZeros, FromBytes, IntoBytes);
289 unsafe_impl!(Option<NonZeroU64>: TryFromBytes, FromZeros, FromBytes, IntoBytes);
290 unsafe_impl!(Option<NonZeroI64>: TryFromBytes, FromZeros, FromBytes, IntoBytes);
291 unsafe_impl!(Option<NonZeroU128>: TryFromBytes, FromZeros, FromBytes, IntoBytes);
292 unsafe_impl!(Option<NonZeroI128>: TryFromBytes, FromZeros, FromBytes, IntoBytes);
293 unsafe_impl!(Option<NonZeroUsize>: TryFromBytes, FromZeros, FromBytes, IntoBytes);
294 unsafe_impl!(Option<NonZeroIsize>: TryFromBytes, FromZeros, FromBytes, IntoBytes);
336 T => TryFromBytes for Option<Box<T>>; |c| pointer::is_zeroed(c)
341 T => FromZeros for Option<Box<T>>
344 T => TryFromBytes for Option<&'_ T>; |c| pointer::is_zeroed(c)
346 unsafe_impl!(T => FromZeros for Option<&'_ T>);
348 T => TryFromBytes for Option<&'_ mut T>; |c| pointer::is_zeroed(c)
350 unsafe_impl!(T => FromZeros for Option<&'_ mut T>);
352 T => TryFromBytes for Option<NonNull<T>>; |c| pointer::is_zeroed(c)
354 unsafe_impl!(T => FromZeros for Option<NonNull<T>>);
990 const _: () = unsafe { unsafe_impl!(T: Immutable => Immutable for Option<T>) };
1428 impl TryFromBytesTestable for Option<$tys> { in test_impls()
1527 @failure Option::<Self>::None; in test_impls()
1580 -> Option<bool>; in test_impls()
1588 ) -> Option<bool> { in test_impls()
1598 ) -> Option<Option<&'bytes T>>; in test_impls()
1606 ) -> Option<Option<&'bytes T>> { in test_impls()
1616 ) -> Option<Option<&'bytes mut T>>; in test_impls()
1624 ) -> Option<Option<&'bytes mut T>> { in test_impls()
1630 fn test_try_read_from(&self, bytes: &[u8]) -> Option<Option<T>>; in test_impls()
1634 fn test_try_read_from(&self, bytes: &[u8]) -> Option<Option<T>> { in test_impls()
1641 fn test_as_bytes<'slf, 't>(&'slf self, t: &'t ReadOnly<T>) -> Option<&'t [u8]>; in test_impls()
1646 fn test_as_bytes<'slf, 't>(&'slf self, t: &'t ReadOnly<T>) -> Option<&'t [u8]> { in test_impls()
1696 ) -> Option<bool> { in test_impls()
1711 … fn test_try_from_ref<'bytes>(&mut self, _bytes: &'bytes [u8]) -> Option<Option<&'bytes $ty>> { in test_impls()
1721 …fn test_try_from_mut<'bytes>(&mut self, _bytes: &'bytes mut [u8]) -> Option<Option<&'bytes mut $ty… in test_impls()
1724 Option<Box<UnsafeCell<NotZerocopy>>>, in test_impls()
1725 Option<&'static UnsafeCell<NotZerocopy>>, in test_impls()
1726 Option<&'static mut UnsafeCell<NotZerocopy>>, in test_impls()
1727 Option<NonNull<UnsafeCell<NotZerocopy>>>, in test_impls()
1728 Option<fn()>, in test_impls()
1729 Option<FnManyArgs>, in test_impls()
1730 Option<extern "C" fn()>, in test_impls()
1731 Option<ECFnManyArgs>, in test_impls()
1739 fn test_try_read_from(&mut self, _bytes: &[u8]) -> Option<Option<&$ty>> { in test_impls()
1753 fn test_as_bytes(&mut self, _t: &ReadOnly<$ty>) -> Option<&[u8]> { in test_impls()
1756 Option<&'static UnsafeCell<NotZerocopy>>, in test_impls()
1757 Option<&'static mut UnsafeCell<NotZerocopy>>, in test_impls()
1758 Option<NonNull<UnsafeCell<NotZerocopy>>>, in test_impls()
1759 Option<Box<UnsafeCell<NotZerocopy>>>, in test_impls()
1760 Option<fn()>, in test_impls()
1761 Option<FnManyArgs>, in test_impls()
1762 Option<extern "C" fn()>, in test_impls()
1763 Option<ECFnManyArgs>, in test_impls()
2192 …assert_impls!(Option<NonZeroU8>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoB… in test_impls()
2193 …assert_impls!(Option<NonZeroI8>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, IntoB… in test_impls()
2194 …assert_impls!(Option<NonZeroU16>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, Into… in test_impls()
2195 …assert_impls!(Option<NonZeroI16>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, Into… in test_impls()
2196 …assert_impls!(Option<NonZeroU32>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, Into… in test_impls()
2197 …assert_impls!(Option<NonZeroI32>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, Into… in test_impls()
2198 …assert_impls!(Option<NonZeroU64>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, Into… in test_impls()
2199 …assert_impls!(Option<NonZeroI64>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, Into… in test_impls()
2200 …assert_impls!(Option<NonZeroU128>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, Int… in test_impls()
2201 …assert_impls!(Option<NonZeroI128>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, Int… in test_impls()
2202 …assert_impls!(Option<NonZeroUsize>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, In… in test_impls()
2203 …assert_impls!(Option<NonZeroIsize>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBytes, In… in test_impls()
2221 …assert_impls!(Option<Box<UnsafeCell<NotZerocopy>>>: KnownLayout, Immutable, TryFromBytes, FromZero… in test_impls()
2222 …assert_impls!(Option<Box<[UnsafeCell<NotZerocopy>]>>: KnownLayout, !Immutable, !TryFromBytes, !Fro… in test_impls()
2223 …assert_impls!(Option<&'static UnsafeCell<NotZerocopy>>: KnownLayout, Immutable, TryFromBytes, From… in test_impls()
2224 …assert_impls!(Option<&'static [UnsafeCell<NotZerocopy>]>: KnownLayout, Immutable, !TryFromBytes, !… in test_impls()
2225 …assert_impls!(Option<&'static mut UnsafeCell<NotZerocopy>>: KnownLayout, Immutable, TryFromBytes, … in test_impls()
2226 …assert_impls!(Option<&'static mut [UnsafeCell<NotZerocopy>]>: KnownLayout, Immutable, !TryFromByte… in test_impls()
2227 …assert_impls!(Option<NonNull<UnsafeCell<NotZerocopy>>>: KnownLayout, TryFromBytes, FromZeros, Immu… in test_impls()
2228 …assert_impls!(Option<NonNull<[UnsafeCell<NotZerocopy>]>>: KnownLayout, Immutable, !TryFromBytes, !… in test_impls()
2229 …assert_impls!(Option<fn()>: KnownLayout, Immutable, TryFromBytes, FromZeros, !FromBytes, !IntoByte… in test_impls()
2230 …assert_impls!(Option<FnManyArgs>: KnownLayout, Immutable, TryFromBytes, FromZeros, !FromBytes, !In… in test_impls()
2231 …assert_impls!(Option<extern "C" fn()>: KnownLayout, Immutable, TryFromBytes, FromZeros, !FromBytes… in test_impls()
2232 …assert_impls!(Option<ECFnManyArgs>: KnownLayout, Immutable, TryFromBytes, FromZeros, !FromBytes, !… in test_impls()