Struct rust_cuda::kernel::param::ShallowInteriorMutable
source · pub struct ShallowInteriorMutable<T: Sync + StackOnly + PortableBitSemantics + TypeGraphLayout + InteriorMutableSync> { /* private fields */ }
Trait Implementations§
source§impl<'a, T: Sync + StackOnly + PortableBitSemantics + TypeGraphLayout + InteriorMutableSync> CudaKernelParameter for &'a ShallowInteriorMutable<T>
impl<'a, T: Sync + StackOnly + PortableBitSemantics + TypeGraphLayout + InteriorMutableSync> CudaKernelParameter for &'a ShallowInteriorMutable<T>
§type SyncHostType = &'a mut T
Available on crate feature host
only.
type SyncHostType = &'a mut T
host
only.The kernel takes a mutable borrow of the interior mutable data to ensure the interior mutability is limited to just this kernel invocation.
§type AsyncHostType<'stream, 'b> = AsyncProj<'b, 'stream, HostAndDeviceConstRef<'b, T>>
where
Self: 'b
type AsyncHostType<'stream, 'b> = AsyncProj<'b, 'stream, HostAndDeviceConstRef<'b, T>> 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.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: Sync + StackOnly + PortableBitSemantics + TypeGraphLayout + InteriorMutableSync> Deref for ShallowInteriorMutable<T>
impl<T: Sync + StackOnly + PortableBitSemantics + TypeGraphLayout + InteriorMutableSync> Deref for ShallowInteriorMutable<T>
Auto Trait Implementations§
impl<T> Freeze for ShallowInteriorMutable<T>
impl<T> PortableBitSemantics for ShallowInteriorMutable<T>
impl<T> RefUnwindSafe for ShallowInteriorMutable<T>where
T: RefUnwindSafe,
impl<T> Send for ShallowInteriorMutable<T>where
T: Send,
impl<T> StackOnly for ShallowInteriorMutable<T>
impl<T> Sync for ShallowInteriorMutable<T>
impl<T> Unpin for ShallowInteriorMutable<T>where
T: Unpin,
impl<T> UnwindSafe for ShallowInteriorMutable<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