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§
Sourcefn scalar_offset(index: <Self as Indexable>::Index) -> usize
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.