Struct rust_cuda::utils::exchange::buffer::CudaExchangeItem

source ·
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>

source

pub const fn read(&self) -> &T

Available on crate feature host only.
source

pub fn write(&mut self, value: T)

Available on crate feature device only.
source§

impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout, const M2H: bool> CudaExchangeItem<T, true, M2H>

source

pub const fn read(&self) -> &T

Available on crate feature device only.
source

pub fn write(&mut self, value: T)

Available on crate feature host only.
source§

impl<T: StackOnly + PortableBitSemantics + TypeGraphLayout> CudaExchangeItem<T, false, true>

source

pub const fn as_scratch(&self) -> &T

Available on crate feature host only.
source

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>

source

pub const fn as_scratch(&self) -> &T

Available on crate feature device only.
source

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>

source

pub const fn as_uninit(&self) -> &MaybeUninit<T>

Available on crate feature host only.
source

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>

source

pub const fn as_uninit(&self) -> &MaybeUninit<T>

Available on crate feature device only.
source

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>

source§

fn as_mut(&mut self) -> &mut T

Converts this type into a mutable reference of the (usually inferred) input type.
source§

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>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T, const M2D: bool, const M2H: bool> ComputeTypeSet for CudaExchangeItem<T, M2D, M2H>

§

type Output<__TypeSetRest: ExpandTypeSet> = <__TypeSetRest as ComputeSet>::Output<T>

Extend the set T into a (larger) set containing also the types this type links to. Read more
source§

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

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> = _

Shallow layout of the type.
source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> ExtractDiscriminant for T

§

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
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> TypeGraphLayout for T

source§

const TYPE_GRAPH: TypeLayoutGraph<'static> = _

Shallow layout of the type.
§

impl<T> Erased for T