Trait ConstLayout

Source
pub trait ConstLayout: Indexable {
    // Required method
    fn scalar_offset(index: <Self as Indexable>::Index) -> usize;
}
Expand description

Trait for setting values in a matrix.

Required Methods§

Source

fn scalar_offset(index: <Self as Indexable>::Index) -> usize

Get offset for a specified scalar from beginning of underlying buffer.

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.

Implementors§

Source§

impl<E, const ROWS: usize, const COLS: usize> ConstLayout for Mat<ROWS, COLS, E, DescriptorOrderColumnMajor>
where E: MatEl,

Source§

impl<E, const ROWS: usize, const COLS: usize> ConstLayout for Mat<ROWS, COLS, E, DescriptorOrderRowMajor>
where E: MatEl,