Trait Storage

Source
pub trait Storage: AsRef<Ref<[Self::T], Self::Device>> {
    type T;
    type Device: Device;
}
Expand description

Represents a storage for crate::tensor::Tensor

Required Associated Types§

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.

Implementations on Foreign Types§

Source§

impl<'a, T> Storage for &'a [T]

Source§

impl<'a, T> Storage for &'a mut [T]

Source§

impl<'a, T, D: Device> Storage for &'a Ref<[T], D>

Source§

type T = T

Source§

type Device = D

Source§

impl<'a, T, D: Device> Storage for &'a mut Ref<[T], D>

Source§

type T = T

Source§

type Device = D

Source§

impl<T, A: Allocator> Storage for Vec<T, A>

Source§

impl<T, A: DeviceAllocator> Storage for Vec<T, A>

Source§

impl<T, const N: usize> Storage for [T; N]

Implementors§