Trait MemorySize

Source
pub trait MemorySize {
    // Required method
    fn size() -> usize;
}
Expand description

Trait that returns the size of Cuda smart point type memory (returns the number of elements)

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, const N1: usize, const N2: usize> MemorySize for CudaTensor2dPtr<T, N1, N2>
where T: Default + Debug,

Source§

impl<T, const N1: usize, const N2: usize, const N3: usize> MemorySize for CudaTensor3dPtr<T, N1, N2, N3>
where T: Default + Debug,

Source§

impl<T, const N1: usize, const N2: usize, const N3: usize, const N4: usize> MemorySize for CudaTensor4dPtr<T, N1, N2, N3, N4>
where T: Default + Debug,

Source§

impl<T, const N: usize> MemorySize for CudaTensor1dPtr<T, N>
where T: Default + Debug,