Skip to main content

StorageFor

Trait StorageFor 

Source
pub trait StorageFor<L: TensorLayout>: Storage { }
Expand description

Compatibility marker between a Storage and a TensorLayout.

St: StorageFor<L> declares that St is a valid storage for layout L. The marker has no methods; it serves as the type-level gate enforcing that TensorData<St, L> is only constructed from flavor-matched pairs (DenseStorageDenseLayout, BlockSparseStorageBlockSparseLayout).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§