Skip to main content

MatrixLayout

Trait MatrixLayout 

Source
pub trait MatrixLayout: Layout {
    // Required method
    fn matrix(&self) -> MatrixBytes;
}
Expand description

A layout that’s a matrix of elements.

Required Methods§

Source

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".

Implementations on Foreign Types§

Source§

impl<L> MatrixLayout for &L
where L: MatrixLayout,

Source§

impl<L> MatrixLayout for &mut L
where L: MatrixLayout,

Implementors§