pub struct RustToCudaWithPortableBitCopySemantics<T: Copy + PortableBitSemantics + TypeGraphLayout>(/* private fields */);

Implementations§

source§

impl<T: Copy + PortableBitSemantics + TypeGraphLayout> RustToCudaWithPortableBitCopySemantics<T>

source

pub const fn from_copy(value: &T) -> Self

source

pub const fn into_inner(self) -> T

source

pub const fn from_ref(reference: &T) -> &Self

source

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

source

pub fn from_mut(reference: &mut T) -> &mut Self

source

pub fn into_mut(&mut self) -> &mut T

source

pub const fn from_slice(slice: &[T]) -> &[Self]

source

pub const fn into_slice(slice: &[Self]) -> &[T]

source

pub fn from_mut_slice(slice: &mut [T]) -> &mut [Self]

source

pub fn into_mut_slice(slice: &mut [Self]) -> &mut [T]

Trait Implementations§

source§

impl<T: Clone + Copy + PortableBitSemantics + TypeGraphLayout> Clone for RustToCudaWithPortableBitCopySemantics<T>

source§

fn clone(&self) -> RustToCudaWithPortableBitCopySemantics<T>

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> ComputeTypeSet for RustToCudaWithPortableBitCopySemantics<T>

§

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: Copy + PortableBitSemantics + TypeGraphLayout> CudaAsRust for RustToCudaWithPortableBitCopySemantics<T>

source§

impl<T: Debug + Copy + PortableBitSemantics + TypeGraphLayout> Debug for RustToCudaWithPortableBitCopySemantics<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Copy + PortableBitSemantics + TypeGraphLayout> Deref for RustToCudaWithPortableBitCopySemantics<T>

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl<T: Copy + PortableBitSemantics + TypeGraphLayout> DerefMut for RustToCudaWithPortableBitCopySemantics<T>

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl<T: Copy + PortableBitSemantics + TypeGraphLayout> From<T> for RustToCudaWithPortableBitCopySemantics<T>

source§

fn from(value: T) -> Self

Converts to this type from the input type.
source§

impl<T: Copy + PortableBitSemantics + TypeGraphLayout> RustToCuda for RustToCudaWithPortableBitCopySemantics<T>

source§

impl<T: Copy + PortableBitSemantics + TypeGraphLayout> RustToCudaAsync for RustToCudaWithPortableBitCopySemantics<T>

source§

impl<T> TypeLayout for RustToCudaWithPortableBitCopySemantics<T>

§

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 + Copy + PortableBitSemantics + TypeGraphLayout> Copy for RustToCudaWithPortableBitCopySemantics<T>

Auto Trait Implementations§

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> BorrowFromRust for T
where T: RustToCuda,

source§

unsafe fn with_borrow_from_rust<O, F>( cuda_repr: DeviceConstRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>, inner: F ) -> O
where F: FnOnce(&T) -> 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
where F: FnOnce(&mut T) -> O, T: SafeMutableAliasing,

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 ) -> O

Available on crate feature device only.
Safety 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> 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<!> for T

source§

fn from(t: !) -> T

Converts to this type from the input type.
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> LendToCuda for T
where T: RustToCuda,

source§

fn lend_to_cuda<O, E, F>(&self, inner: F) -> Result<O, E>

Available on crate feature host only.
Lends an immutable borrow of &self to CUDA: Read more
source§

fn lend_to_cuda_mut<O, E, F>(&mut self, inner: F) -> Result<O, E>

Available on crate feature host only.
Lends a mutable borrow of &mut self to CUDA iff Self is SafeMutableAliasing: Read more
source§

fn move_to_cuda<O, E, F>(self, inner: F) -> Result<O, E>

Available on crate feature host only.
Moves self to CUDA iff Self is StackOnly. Read more
source§

impl<T> LendToCudaAsync for T
where 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,

Available on crate feature host only.
Lends an immutable copy of &self to CUDA: Read more
source§

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.
Lends a mutable borrow of &mut self to CUDA iff Self is SafeMutableAliasing: Read more
source§

fn move_to_cuda_async<'stream, O, E, F>( self, stream: Stream<'stream>, inner: F ) -> Result<O, E>

Available on crate feature host only.
Moves self to CUDA iff self is StackOnly. Read more
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