Trait AsPtr

Source
pub trait AsPtr<T> {
    // Required method
    fn as_ptr(&self) -> *const T;
}
Expand description

Obtaining an immutable pointer

Required Methods§

Source

fn as_ptr(&self) -> *const T

Implementors§

Source§

impl<CP, T> AsPtr<T> for CP
where CP: AsCudaPtrRef, <CP as AsCudaPtrRef>::Pointer: AsPtr<T>,

Source§

impl<T> AsPtr<T> for CudaHostPtr<T>

Source§

impl<T> AsPtr<T> for CudaMemoryPoolPtr<T>

Source§

impl<T> AsPtr<T> for CudaPtr<T>

Source§

impl<U, T> AsPtr<U> for CachedTensor<U, T>
where U: Debug + Default, T: AsRawSlice<U>,