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 (DenseStorage ⇔ DenseLayout,
BlockSparseStorage ⇔ BlockSparseLayout).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".