pub struct CudaTensor2dPtrView<'a, T, const N1: usize, const N2: usize>{ /* private fields */ }
Expand description
View into a Cuda memory object representing a 2D array with dimension number as a type parameter
Trait Implementations§
Source§impl<'a, T, const N1: usize, const N2: usize> AsCudaPtrRef for CudaTensor2dPtrView<'a, T, N1, N2>
impl<'a, T, const N1: usize, const N2: usize> AsCudaPtrRef for CudaTensor2dPtrView<'a, T, N1, N2>
Source§type Pointer = CudaMemoryPoolPtr<T>
type Pointer = CudaMemoryPoolPtr<T>
Returned Cuda smart pointer type
fn as_cuda_ptr_ref(&self) -> &Self::Pointer
Source§impl<'a, T, const N1: usize, const N2: usize> From<&'a CudaTensor2dPtr<T, N1, N2>> for CudaTensor2dPtrView<'a, T, N1, N2>
impl<'a, T, const N1: usize, const N2: usize> From<&'a CudaTensor2dPtr<T, N1, N2>> for CudaTensor2dPtrView<'a, T, N1, N2>
Source§fn from(value: &'a CudaTensor2dPtr<T, N1, N2>) -> Self
fn from(value: &'a CudaTensor2dPtr<T, N1, N2>) -> Self
Converts to this type from the input type.
Source§impl<'a, T, const N1: usize, const N2: usize> From<&'a CudaTensor2dPtrView<'a, T, N1, N2>> for CudaTensor2dPtrView<'a, T, N1, N2>
impl<'a, T, const N1: usize, const N2: usize> From<&'a CudaTensor2dPtrView<'a, T, N1, N2>> for CudaTensor2dPtrView<'a, T, N1, N2>
Source§fn from(value: &'a CudaTensor2dPtrView<'a, T, N1, N2>) -> Self
fn from(value: &'a CudaTensor2dPtrView<'a, T, N1, N2>) -> Self
Converts to this type from the input type.
Source§impl<'a, T, const N1: usize, const N2: usize> PointerElement for CudaTensor2dPtrView<'a, T, N1, N2>
impl<'a, T, const N1: usize, const N2: usize> PointerElement for CudaTensor2dPtrView<'a, T, N1, N2>
Source§impl<'a, T, const N1: usize, const N2: usize> TryFrom<&'a CudaTensor2dPtrView<'a, T, N1, N2>> for CudaTensor2dPtr<T, N1, N2>
impl<'a, T, const N1: usize, const N2: usize> TryFrom<&'a CudaTensor2dPtrView<'a, T, N1, N2>> for CudaTensor2dPtr<T, N1, N2>
Auto Trait Implementations§
impl<'a, T, const N1: usize, const N2: usize> Freeze for CudaTensor2dPtrView<'a, T, N1, N2>
impl<'a, T, const N1: usize, const N2: usize> RefUnwindSafe for CudaTensor2dPtrView<'a, T, N1, N2>where
T: RefUnwindSafe,
impl<'a, T, const N1: usize, const N2: usize> !Send for CudaTensor2dPtrView<'a, T, N1, N2>
impl<'a, T, const N1: usize, const N2: usize> !Sync for CudaTensor2dPtrView<'a, T, N1, N2>
impl<'a, T, const N1: usize, const N2: usize> Unpin for CudaTensor2dPtrView<'a, T, N1, N2>
impl<'a, T, const N1: usize, const N2: usize> UnwindSafe for CudaTensor2dPtrView<'a, T, N1, N2>where
T: RefUnwindSafe,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more