pub struct RustToCudaWithPortableBitCopySemantics<T: Copy + PortableBitSemantics + TypeGraphLayout>(/* private fields */);
Implementations§
source§impl<T: Copy + PortableBitSemantics + TypeGraphLayout> RustToCudaWithPortableBitCopySemantics<T>
impl<T: Copy + PortableBitSemantics + TypeGraphLayout> RustToCudaWithPortableBitCopySemantics<T>
pub const fn from_copy(value: &T) -> Self
pub const fn into_inner(self) -> T
pub const fn from_ref(reference: &T) -> &Self
pub const fn into_ref(&self) -> &T
pub fn from_mut(reference: &mut T) -> &mut Self
pub fn into_mut(&mut self) -> &mut T
pub const fn from_slice(slice: &[T]) -> &[Self]
pub const fn into_slice(slice: &[Self]) -> &[T]
pub fn from_mut_slice(slice: &mut [T]) -> &mut [Self]
pub fn into_mut_slice(slice: &mut [Self]) -> &mut [T]
Trait Implementations§
source§impl<T: Clone + Copy + PortableBitSemantics + TypeGraphLayout> Clone for RustToCudaWithPortableBitCopySemantics<T>
impl<T: Clone + Copy + PortableBitSemantics + TypeGraphLayout> Clone for RustToCudaWithPortableBitCopySemantics<T>
source§fn clone(&self) -> RustToCudaWithPortableBitCopySemantics<T>
fn clone(&self) -> RustToCudaWithPortableBitCopySemantics<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T> ComputeTypeSet for RustToCudaWithPortableBitCopySemantics<T>
impl<T> ComputeTypeSet for RustToCudaWithPortableBitCopySemantics<T>
source§impl<T: Copy + PortableBitSemantics + TypeGraphLayout> CudaAsRust for RustToCudaWithPortableBitCopySemantics<T>
impl<T: Copy + PortableBitSemantics + TypeGraphLayout> CudaAsRust for RustToCudaWithPortableBitCopySemantics<T>
source§impl<T: Debug + Copy + PortableBitSemantics + TypeGraphLayout> Debug for RustToCudaWithPortableBitCopySemantics<T>
impl<T: Debug + Copy + PortableBitSemantics + TypeGraphLayout> Debug for RustToCudaWithPortableBitCopySemantics<T>
source§impl<T: Copy + PortableBitSemantics + TypeGraphLayout> Deref for RustToCudaWithPortableBitCopySemantics<T>
impl<T: Copy + PortableBitSemantics + TypeGraphLayout> Deref for RustToCudaWithPortableBitCopySemantics<T>
source§impl<T: Copy + PortableBitSemantics + TypeGraphLayout> DerefMut for RustToCudaWithPortableBitCopySemantics<T>
impl<T: Copy + PortableBitSemantics + TypeGraphLayout> DerefMut for RustToCudaWithPortableBitCopySemantics<T>
source§impl<T: Copy + PortableBitSemantics + TypeGraphLayout> From<T> for RustToCudaWithPortableBitCopySemantics<T>
impl<T: Copy + PortableBitSemantics + TypeGraphLayout> From<T> for RustToCudaWithPortableBitCopySemantics<T>
source§impl<T: Copy + PortableBitSemantics + TypeGraphLayout> RustToCuda for RustToCudaWithPortableBitCopySemantics<T>
impl<T: Copy + PortableBitSemantics + TypeGraphLayout> RustToCuda for RustToCudaWithPortableBitCopySemantics<T>
source§impl<T: Copy + PortableBitSemantics + TypeGraphLayout> RustToCudaAsync for RustToCudaWithPortableBitCopySemantics<T>
impl<T: Copy + PortableBitSemantics + TypeGraphLayout> RustToCudaAsync for RustToCudaWithPortableBitCopySemantics<T>
type CudaAllocationAsync = NoCudaAlloc
source§impl<T> TypeLayout for RustToCudaWithPortableBitCopySemantics<T>
impl<T> TypeLayout for RustToCudaWithPortableBitCopySemantics<T>
§type Inhabited = <And<<T as TypeLayout>::Inhabited, Inhabited> as ComputeInhabited>::Output
type Inhabited = <And<<T as TypeLayout>::Inhabited, Inhabited> as ComputeInhabited>::Output
Marker type for whether the type is
inhabited or
uninhabited.
The associated type must be either
inhabited::Inhabited
or inhabited::Uninhabited
.source§const TYPE_LAYOUT: TypeLayoutInfo<'static> = _
const TYPE_LAYOUT: TypeLayoutInfo<'static> = _
Shallow layout of the type.
impl<T: Copy + Copy + PortableBitSemantics + TypeGraphLayout> Copy for RustToCudaWithPortableBitCopySemantics<T>
Auto Trait Implementations§
impl<T> Freeze for RustToCudaWithPortableBitCopySemantics<T>where
T: Freeze,
impl<T> PortableBitSemantics for RustToCudaWithPortableBitCopySemantics<T>
impl<T> RefUnwindSafe for RustToCudaWithPortableBitCopySemantics<T>where
T: RefUnwindSafe,
impl<T> Send for RustToCudaWithPortableBitCopySemantics<T>where
T: Send,
impl<T> StackOnly for RustToCudaWithPortableBitCopySemantics<T>where
T: StackOnly,
impl<T> Sync for RustToCudaWithPortableBitCopySemantics<T>where
T: Sync,
impl<T> Unpin for RustToCudaWithPortableBitCopySemantics<T>where
T: Unpin,
impl<T> UnwindSafe for RustToCudaWithPortableBitCopySemantics<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowFromRust for Twhere
T: RustToCuda,
impl<T> BorrowFromRust for Twhere
T: RustToCuda,
source§unsafe fn with_borrow_from_rust<O, F>(
cuda_repr: DeviceConstRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>,
inner: F,
) -> O
unsafe fn with_borrow_from_rust<O, F>( cuda_repr: DeviceConstRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>, inner: F, ) -> O
Available on crate feature
device
only.Safety Read more
source§unsafe fn with_borrow_from_rust_mut<O, F>(
cuda_repr_mut: DeviceMutRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>,
inner: F,
) -> O
unsafe fn with_borrow_from_rust_mut<O, F>( cuda_repr_mut: DeviceMutRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>, inner: F, ) -> O
Available on crate feature
device
only.Safety Read more
source§unsafe fn with_moved_from_rust<O, F>(
cuda_repr: DeviceOwnedRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>,
inner: F,
) -> Owhere
F: FnOnce(T) -> O,
T: RustToCuda,
<T as RustToCuda>::CudaRepresentation: StackOnly,
<T as RustToCuda>::CudaAllocation: EmptyCudaAlloc,
unsafe fn with_moved_from_rust<O, F>(
cuda_repr: DeviceOwnedRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>,
inner: F,
) -> Owhere
F: FnOnce(T) -> O,
T: RustToCuda,
<T as RustToCuda>::CudaRepresentation: StackOnly,
<T as RustToCuda>::CudaAllocation: EmptyCudaAlloc,
Available on crate feature
device
only.Safety Read more
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> ExtractDiscriminant for T
impl<T> ExtractDiscriminant for T
§type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
The type of the discriminant, which must satisfy the trait bounds
required by
core::mem::Discriminant
. Read moresource§impl<T> LendToCuda for Twhere
T: RustToCuda,
impl<T> LendToCuda for Twhere
T: RustToCuda,
source§fn lend_to_cuda<O, E, F>(&self, inner: F) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(HostAndDeviceConstRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>) -> Result<O, E>,
T: Sync,
fn lend_to_cuda<O, E, F>(&self, inner: F) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(HostAndDeviceConstRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>) -> Result<O, E>,
T: Sync,
Available on crate feature
host
only.Lends an immutable borrow of
&self
to CUDA: Read moresource§fn lend_to_cuda_mut<O, E, F>(&mut self, inner: F) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(HostAndDeviceMutRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>) -> Result<O, E>,
T: Sync + SafeMutableAliasing,
fn lend_to_cuda_mut<O, E, F>(&mut self, inner: F) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(HostAndDeviceMutRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>) -> Result<O, E>,
T: Sync + SafeMutableAliasing,
Available on crate feature
host
only.source§fn move_to_cuda<O, E, F>(self, inner: F) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(HostAndDeviceOwned<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>) -> Result<O, E>,
T: Send + RustToCuda,
<T as RustToCuda>::CudaRepresentation: StackOnly,
<T as RustToCuda>::CudaAllocation: EmptyCudaAlloc,
fn move_to_cuda<O, E, F>(self, inner: F) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(HostAndDeviceOwned<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>) -> Result<O, E>,
T: Send + RustToCuda,
<T as RustToCuda>::CudaRepresentation: StackOnly,
<T as RustToCuda>::CudaAllocation: EmptyCudaAlloc,
Available on crate feature
host
only.source§impl<T> LendToCudaAsync for Twhere
T: RustToCudaAsync,
impl<T> LendToCudaAsync for Twhere
T: RustToCudaAsync,
source§fn lend_to_cuda_async<'stream, O, E, F>(
&self,
stream: Stream<'stream>,
inner: F,
) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(Async<'_, 'stream, HostAndDeviceConstRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>>) -> Result<O, E>,
T: Sync,
fn lend_to_cuda_async<'stream, O, E, F>(
&self,
stream: Stream<'stream>,
inner: F,
) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(Async<'_, 'stream, HostAndDeviceConstRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>>) -> Result<O, E>,
T: Sync,
Available on crate feature
host
only.Lends an immutable copy of
&self
to CUDA: Read moresource§fn lend_to_cuda_mut_async<'a, 'stream, O, E, F, S>(
this: OwningRefMut<'a, Box<S>, T>,
stream: Stream<'stream>,
inner: F,
) -> Result<(Async<'a, 'stream, OwningRefMut<'a, Box<S>, T>, Box<dyn FnOnce(&mut T) -> Result<(), CudaError> + 'a>>, O), E>where
E: From<CudaError>,
F: for<'b> FnOnce(Async<'b, 'stream, HostAndDeviceMutRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>>) -> Result<O, E>,
S: 'a,
T: Sync + SafeMutableAliasing,
fn lend_to_cuda_mut_async<'a, 'stream, O, E, F, S>(
this: OwningRefMut<'a, Box<S>, T>,
stream: Stream<'stream>,
inner: F,
) -> Result<(Async<'a, 'stream, OwningRefMut<'a, Box<S>, T>, Box<dyn FnOnce(&mut T) -> Result<(), CudaError> + 'a>>, O), E>where
E: From<CudaError>,
F: for<'b> FnOnce(Async<'b, 'stream, HostAndDeviceMutRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>>) -> Result<O, E>,
S: 'a,
T: Sync + SafeMutableAliasing,
Available on crate feature
host
only.source§fn move_to_cuda_async<'stream, O, E, F>(
self,
stream: Stream<'stream>,
inner: F,
) -> Result<O, E>where
E: From<CudaError>,
F: for<'a> FnOnce(Async<'a, 'stream, HostAndDeviceOwned<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>>) -> Result<O, E>,
T: Send + RustToCuda,
<T as RustToCuda>::CudaRepresentation: StackOnly,
<T as RustToCuda>::CudaAllocation: EmptyCudaAlloc,
fn move_to_cuda_async<'stream, O, E, F>(
self,
stream: Stream<'stream>,
inner: F,
) -> Result<O, E>where
E: From<CudaError>,
F: for<'a> FnOnce(Async<'a, 'stream, HostAndDeviceOwned<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>>) -> Result<O, E>,
T: Send + RustToCuda,
<T as RustToCuda>::CudaRepresentation: StackOnly,
<T as RustToCuda>::CudaAllocation: EmptyCudaAlloc,
Available on crate feature
host
only.source§impl<T> TypeGraphLayout for Twhere
T: TypeLayout + ComputeTypeSet,
impl<T> TypeGraphLayout for Twhere
T: TypeLayout + ComputeTypeSet,
source§const TYPE_GRAPH: TypeLayoutGraph<'static> = _
const TYPE_GRAPH: TypeLayoutGraph<'static> = _
Shallow layout of the type.