pub trait MatrixLayout: Layout {
// Required method
fn matrix(&self) -> MatrixBytes;
}Expand description
A layout that’s a matrix of elements.
Required Methods§
Sourcefn matrix(&self) -> MatrixBytes
fn matrix(&self) -> MatrixBytes
The valid matrix specification of this layout.
This call should not fail, or panic. Otherwise, prefer an optional getter for the
StridedBytes and have the caller decay their own buffer.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".