Trait rust_cuda::lend::RustToCuda

source ·
pub unsafe trait RustToCuda {
    type CudaAllocation: CudaAlloc;
    type CudaRepresentation: CudaAsRust<RustRepresentation = Self>;
}
Expand description

§Safety

This is an internal trait and should ONLY be derived automatically using #[derive(LendRustToCuda)]

Required Associated Types§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, T: PortableBitSemantics + TypeGraphLayout> RustToCuda for &'a [T]

§

type CudaAllocation = SomeCudaAlloc

§

type CudaRepresentation = SliceRefCudaRepresentation<'a, T>

source§

impl<'a, T: PortableBitSemantics + TypeGraphLayout> RustToCuda for &'a mut [T]

§

type CudaAllocation = SomeCudaAlloc

§

type CudaRepresentation = SliceRefMutCudaRepresentation<'a, T>

source§

impl<'a, T: PortableBitSemantics + TypeGraphLayout> RustToCuda for &'a T

§

type CudaAllocation = SomeCudaAlloc

§

type CudaRepresentation = RefCudaRepresentation<'a, T>

source§

impl<'a, T: PortableBitSemantics + TypeGraphLayout> RustToCuda for &'a mut T

§

type CudaAllocation = SomeCudaAlloc

§

type CudaRepresentation = RefMutCudaRepresentation<'a, T>

source§

impl<T: PortableBitSemantics + TypeGraphLayout> RustToCuda for Box<[T]>

§

type CudaAllocation = SomeCudaAlloc

§

type CudaRepresentation = BoxedSliceCudaRepresentation<T>

source§

impl<T: PortableBitSemantics + TypeGraphLayout> RustToCuda for Box<T>

§

type CudaAllocation = SomeCudaAlloc

§

type CudaRepresentation = BoxCudaRepresentation<T>

source§

impl<T: PortableBitSemantics + TypeGraphLayout> RustToCuda for Arc<[T]>

§

type CudaAllocation = SomeCudaAlloc

§

type CudaRepresentation = ArcedSliceCudaRepresentation<T>

source§

impl<T: PortableBitSemantics + TypeGraphLayout> RustToCuda for Arc<T>

§

type CudaAllocation = SomeCudaAlloc

§

type CudaRepresentation = ArcCudaRepresentation<T>

source§

impl<T: RustToCuda> RustToCuda for Option<T>

source§

impl<T: RustToCuda> RustToCuda for Final<T>

Available on crate feature final only.
§

type CudaAllocation = <T as RustToCuda>::CudaAllocation

§

type CudaRepresentation = FinalCudaRepresentation<<T as RustToCuda>::CudaRepresentation>

Implementors§