pub struct RustToCudaWithPortableBitCloneSemantics<T: Clone + PortableBitSemantics + TypeGraphLayout>(/* private fields */);
Implementations§
source§impl<T: Clone + PortableBitSemantics + TypeGraphLayout> RustToCudaWithPortableBitCloneSemantics<T>
impl<T: Clone + PortableBitSemantics + TypeGraphLayout> RustToCudaWithPortableBitCloneSemantics<T>
pub fn from_clone(value: &T) -> Self
pub 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 + Clone + PortableBitSemantics + TypeGraphLayout> Clone for RustToCudaWithPortableBitCloneSemantics<T>
impl<T: Clone + Clone + PortableBitSemantics + TypeGraphLayout> Clone for RustToCudaWithPortableBitCloneSemantics<T>
source§fn clone(&self) -> RustToCudaWithPortableBitCloneSemantics<T>
fn clone(&self) -> RustToCudaWithPortableBitCloneSemantics<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 RustToCudaWithPortableBitCloneSemantics<T>
impl<T> ComputeTypeSet for RustToCudaWithPortableBitCloneSemantics<T>
source§impl<T: Clone + PortableBitSemantics + TypeGraphLayout> CudaAsRust for RustToCudaWithPortableBitCloneSemantics<T>
impl<T: Clone + PortableBitSemantics + TypeGraphLayout> CudaAsRust for RustToCudaWithPortableBitCloneSemantics<T>
source§impl<T: Debug + Clone + PortableBitSemantics + TypeGraphLayout> Debug for RustToCudaWithPortableBitCloneSemantics<T>
impl<T: Debug + Clone + PortableBitSemantics + TypeGraphLayout> Debug for RustToCudaWithPortableBitCloneSemantics<T>
source§impl<T: Clone + PortableBitSemantics + TypeGraphLayout> Deref for RustToCudaWithPortableBitCloneSemantics<T>
impl<T: Clone + PortableBitSemantics + TypeGraphLayout> Deref for RustToCudaWithPortableBitCloneSemantics<T>
source§impl<T: Clone + PortableBitSemantics + TypeGraphLayout> DerefMut for RustToCudaWithPortableBitCloneSemantics<T>
impl<T: Clone + PortableBitSemantics + TypeGraphLayout> DerefMut for RustToCudaWithPortableBitCloneSemantics<T>
source§impl<T: Clone + PortableBitSemantics + TypeGraphLayout> From<T> for RustToCudaWithPortableBitCloneSemantics<T>
impl<T: Clone + PortableBitSemantics + TypeGraphLayout> From<T> for RustToCudaWithPortableBitCloneSemantics<T>
source§impl<T: Clone + PortableBitSemantics + TypeGraphLayout> RustToCuda for RustToCudaWithPortableBitCloneSemantics<T>
impl<T: Clone + PortableBitSemantics + TypeGraphLayout> RustToCuda for RustToCudaWithPortableBitCloneSemantics<T>
source§impl<T: Clone + PortableBitSemantics + TypeGraphLayout> RustToCudaAsync for RustToCudaWithPortableBitCloneSemantics<T>
impl<T: Clone + PortableBitSemantics + TypeGraphLayout> RustToCudaAsync for RustToCudaWithPortableBitCloneSemantics<T>
type CudaAllocationAsync = NoCudaAlloc
source§impl<T> TypeLayout for RustToCudaWithPortableBitCloneSemantics<T>
impl<T> TypeLayout for RustToCudaWithPortableBitCloneSemantics<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 + Clone + PortableBitSemantics + TypeGraphLayout> Copy for RustToCudaWithPortableBitCloneSemantics<T>
Auto Trait Implementations§
impl<T> Freeze for RustToCudaWithPortableBitCloneSemantics<T>where
T: Freeze,
impl<T> PortableBitSemantics for RustToCudaWithPortableBitCloneSemantics<T>
impl<T> RefUnwindSafe for RustToCudaWithPortableBitCloneSemantics<T>where
T: RefUnwindSafe,
impl<T> Send for RustToCudaWithPortableBitCloneSemantics<T>where
T: Send,
impl<T> StackOnly for RustToCudaWithPortableBitCloneSemantics<T>where
T: StackOnly,
impl<T> Sync for RustToCudaWithPortableBitCloneSemantics<T>where
T: Sync,
impl<T> Unpin for RustToCudaWithPortableBitCloneSemantics<T>where
T: Unpin,
impl<T> UnwindSafe for RustToCudaWithPortableBitCloneSemantics<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.