Struct rust_cuda::kernel::param::DeepPerThreadBorrow
source · pub struct DeepPerThreadBorrow<T: RustToCuda> { /* private fields */ }
Trait Implementations§
source§impl<'a, T: Sync + RustToCuda> CudaKernelParameter for &'a DeepPerThreadBorrow<T>
impl<'a, T: Sync + RustToCuda> CudaKernelParameter for &'a DeepPerThreadBorrow<T>
§type AsyncHostType<'stream, 'b> = AsyncProj<'b, 'stream, HostAndDeviceConstRef<'b, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>>
where
Self: 'b
type AsyncHostType<'stream, 'b> = AsyncProj<'b, 'stream, HostAndDeviceConstRef<'b, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>> where Self: 'b
Available on crate feature
host
only.§type DeviceType<'b> = &'b T
where
Self: 'b
type DeviceType<'b> = &'b T where Self: 'b
Available on crate feature
device
only.§type SyncHostType = &'a T
type SyncHostType = &'a T
Available on crate feature
host
only.source§fn with_new_async<'stream, 'b, O, E: From<CudaError>>(
param: Self::SyncHostType,
stream: Stream<'stream>,
inner: impl FnOnce(Self::AsyncHostType<'stream, 'b>) -> Result<O, E>,
) -> Result<O, E>where
Self: 'b,
fn with_new_async<'stream, 'b, O, E: From<CudaError>>(
param: Self::SyncHostType,
stream: Stream<'stream>,
inner: impl FnOnce(Self::AsyncHostType<'stream, 'b>) -> Result<O, E>,
) -> Result<O, E>where
Self: 'b,
Available on crate feature
host
only.source§impl<'a, T: Sync + RustToCuda + SafeMutableAliasing> CudaKernelParameter for &'a mut DeepPerThreadBorrow<T>
impl<'a, T: Sync + RustToCuda + SafeMutableAliasing> CudaKernelParameter for &'a mut DeepPerThreadBorrow<T>
§type AsyncHostType<'stream, 'b> = AsyncProj<'b, 'stream, HostAndDeviceMutRef<'b, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>>
where
Self: 'b
type AsyncHostType<'stream, 'b> = AsyncProj<'b, 'stream, HostAndDeviceMutRef<'b, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>> where Self: 'b
Available on crate feature
host
only.§type DeviceType<'b> = &'b mut T
where
Self: 'b
type DeviceType<'b> = &'b mut T where Self: 'b
Available on crate feature
device
only.§type SyncHostType = &'a mut T
type SyncHostType = &'a mut T
Available on crate feature
host
only.source§fn with_new_async<'stream, 'b, O, E: From<CudaError>>(
param: Self::SyncHostType,
stream: Stream<'stream>,
inner: impl FnOnce(Self::AsyncHostType<'stream, 'b>) -> Result<O, E>,
) -> Result<O, E>where
Self: 'b,
fn with_new_async<'stream, 'b, O, E: From<CudaError>>(
param: Self::SyncHostType,
stream: Stream<'stream>,
inner: impl FnOnce(Self::AsyncHostType<'stream, 'b>) -> Result<O, E>,
) -> Result<O, E>where
Self: 'b,
Available on crate feature
host
only.source§impl<T: Send + Clone + RustToCuda<CudaRepresentation: StackOnly, CudaAllocation: EmptyCudaAlloc>> CudaKernelParameter for DeepPerThreadBorrow<T>
impl<T: Send + Clone + RustToCuda<CudaRepresentation: StackOnly, CudaAllocation: EmptyCudaAlloc>> CudaKernelParameter for DeepPerThreadBorrow<T>
§type AsyncHostType<'stream, 'b> = Async<'b, 'stream, HostAndDeviceOwned<'b, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>>
where
Self: 'b
type AsyncHostType<'stream, 'b> = Async<'b, 'stream, HostAndDeviceOwned<'b, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>> where Self: 'b
Available on crate feature
host
only.§type DeviceType<'b> = T
where
Self: 'b
type DeviceType<'b> = T where Self: 'b
Available on crate feature
device
only.§type SyncHostType = T
type SyncHostType = T
Available on crate feature
host
only.source§fn with_new_async<'stream, 'b, O, E: From<CudaError>>(
param: Self::SyncHostType,
stream: Stream<'stream>,
inner: impl FnOnce(Self::AsyncHostType<'stream, 'b>) -> Result<O, E>,
) -> Result<O, E>where
Self: 'b,
fn with_new_async<'stream, 'b, O, E: From<CudaError>>(
param: Self::SyncHostType,
stream: Stream<'stream>,
inner: impl FnOnce(Self::AsyncHostType<'stream, 'b>) -> Result<O, E>,
) -> Result<O, E>where
Self: 'b,
Available on crate feature
host
only.Auto Trait Implementations§
impl<T> Freeze for DeepPerThreadBorrow<T>
impl<T> PortableBitSemantics for DeepPerThreadBorrow<T>
impl<T> RefUnwindSafe for DeepPerThreadBorrow<T>where
T: RefUnwindSafe,
impl<T> Send for DeepPerThreadBorrow<T>where
T: Send,
impl<T> StackOnly for DeepPerThreadBorrow<T>
impl<T> Sync for DeepPerThreadBorrow<T>where
T: Sync,
impl<T> Unpin for DeepPerThreadBorrow<T>where
T: Unpin,
impl<T> UnwindSafe for DeepPerThreadBorrow<T>where
T: UnwindSafe,
Blanket Implementations§
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> 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 more