Trait StorageMut

Source
pub trait StorageMut: Storage + AsMut<Ref<[Self::T], Self::Device>> { }
Expand description

Represents a mutable storage for crate::tensor::Tensor

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> StorageMut for &'a mut [T]

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§