We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99ace7a commit d6d98b7Copy full SHA for d6d98b7
crates/cust_core/src/lib.rs
@@ -6,6 +6,7 @@ pub use cust_derive::DeviceCopyCore as DeviceCopy;
6
#[doc(hidden)]
7
pub mod _hidden {
8
use core::marker::PhantomData;
9
+ use core::mem::MaybeUninit;
10
use core::num::*;
11
12
/// Marker trait for types which can safely be copied to or from a CUDA device.
@@ -87,6 +88,7 @@ pub mod _hidden {
87
88
89
NonZeroU8 NonZeroU16 NonZeroU32 NonZeroU64 NonZeroU128
90
);
91
+ unsafe impl<T: DeviceCopy> DeviceCopy for MaybeUninit<T> {}
92
unsafe impl<T: DeviceCopy> DeviceCopy for Option<T> {}
93
unsafe impl<L: DeviceCopy, R: DeviceCopy> DeviceCopy for Result<L, R> {}
94
unsafe impl<T: ?Sized + DeviceCopy> DeviceCopy for PhantomData<T> {}
0 commit comments