pub struct CudaExchangeItem<T: StackOnly + PortableBitSemantics + TypeGraphLayout, const M2D: bool, const M2H: bool>(/* private fields */);
Implementations§
source§impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout, const M2D: bool> CudaExchangeItem<T, M2D, true>
impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout, const M2D: bool> CudaExchangeItem<T, M2D, true>
source§impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout, const M2H: bool> CudaExchangeItem<T, true, M2H>
impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout, const M2H: bool> CudaExchangeItem<T, true, M2H>
source§impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout> CudaExchangeItem<T, false, true>
impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout> CudaExchangeItem<T, false, true>
pub const fn as_scratch(&self) -> &T
Available on crate feature
host
only.pub fn as_scratch_mut(&mut self) -> &mut T
Available on crate feature
host
only.source§impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout> CudaExchangeItem<T, true, false>
impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout> CudaExchangeItem<T, true, false>
pub const fn as_scratch(&self) -> &T
Available on crate feature
device
only.pub fn as_scratch_mut(&mut self) -> &mut T
Available on crate feature
device
only.source§impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout> CudaExchangeItem<T, true, false>
impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout> CudaExchangeItem<T, true, false>
pub const fn as_uninit(&self) -> &MaybeUninit<T>
Available on crate feature
host
only.pub fn as_uninit_mut(&mut self) -> &mut MaybeUninit<T>
Available on crate feature
host
only.source§impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout> CudaExchangeItem<T, false, true>
impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout> CudaExchangeItem<T, false, true>
pub const fn as_uninit(&self) -> &MaybeUninit<T>
Available on crate feature
device
only.pub fn as_uninit_mut(&mut self) -> &mut MaybeUninit<T>
Available on crate feature
device
only.Trait Implementations§
source§impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout> AsMut<T> for CudaExchangeItem<T, true, true>
impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout> AsMut<T> for CudaExchangeItem<T, true, true>
source§impl<T: Clone + StackOnly + PortableBitSemantics + TypeGraphLayout, const M2D: bool, const M2H: bool> Clone for CudaExchangeItem<T, M2D, M2H>
impl<T: Clone + StackOnly + PortableBitSemantics + TypeGraphLayout, const M2D: bool, const M2H: bool> Clone for CudaExchangeItem<T, M2D, M2H>
source§fn clone(&self) -> CudaExchangeItem<T, M2D, M2H>
fn clone(&self) -> CudaExchangeItem<T, M2D, M2H>
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, const M2D: bool, const M2H: bool> ComputeTypeSet for CudaExchangeItem<T, M2D, M2H>
impl<T, const M2D: bool, const M2H: bool> ComputeTypeSet for CudaExchangeItem<T, M2D, M2H>
source§impl<T, const M2D: bool, const M2H: bool> TypeLayout for CudaExchangeItem<T, M2D, M2H>
impl<T, const M2D: bool, const M2H: bool> TypeLayout for CudaExchangeItem<T, M2D, M2H>
§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 + StackOnly + PortableBitSemantics + TypeGraphLayout, const M2D: bool, const M2H: bool> Copy for CudaExchangeItem<T, M2D, M2H>
Auto Trait Implementations§
impl<T, const M2D: bool, const M2H: bool> Freeze for CudaExchangeItem<T, M2D, M2H>where
T: Freeze,
impl<T, const M2D: bool, const M2H: bool> PortableBitSemantics for CudaExchangeItem<T, M2D, M2H>
impl<T, const M2D: bool, const M2H: bool> RefUnwindSafe for CudaExchangeItem<T, M2D, M2H>where
T: RefUnwindSafe,
impl<T, const M2D: bool, const M2H: bool> Send for CudaExchangeItem<T, M2D, M2H>where
T: Send,
impl<T, const M2D: bool, const M2H: bool> StackOnly for CudaExchangeItem<T, M2D, M2H>
impl<T, const M2D: bool, const M2H: bool> Sync for CudaExchangeItem<T, M2D, M2H>where
T: Sync,
impl<T, const M2D: bool, const M2H: bool> Unpin for CudaExchangeItem<T, M2D, M2H>where
T: Unpin,
impl<T, const M2D: bool, const M2H: bool> UnwindSafe for CudaExchangeItem<T, M2D, M2H>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> 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> 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.