Lines Matching refs:Box
306 T: Sized => Immutable for Box<T>
336 T => TryFromBytes for Option<Box<T>>; |c| pointer::is_zeroed(c)
341 T => FromZeros for Option<Box<T>>
1401 fn with_passing_test_cases<F: Fn(Box<ReadOnly<Self>>)>(f: F); in test_impls()
1406 fn with_passing_test_cases<F: Fn(Box<ReadOnly<Self>>)>(f: F) { in test_impls()
1419 f(Box::new(ffs)); in test_impls()
1429 fn with_passing_test_cases<F: Fn(Box<ReadOnly<Self>>)>(f: F) { in test_impls()
1431 f(Box::new(ReadOnly::new(None))); in test_impls()
1469 fn with_passing_test_cases<F: Fn(Box<ReadOnly<Self>>)>(_f: F) { in test_impls()
1471 let bx = Box::<Self>::from($success_case); in test_impls()
1472 let ro: Box<ReadOnly<_>> = { in test_impls()
1473 let raw = Box::into_raw(bx); in test_impls()
1477 unsafe { Box::from_raw(raw as *mut _) } in test_impls()
1493 Box<UnsafeCell<NotZerocopy>>, in test_impls()
1505 Box::new($e) in test_impls()
1724 Option<Box<UnsafeCell<NotZerocopy>>>, in test_impls()
1759 Option<Box<UnsafeCell<NotZerocopy>>>, 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()