pub trait M: Debug + Clone {
const SIZE: usize;
// Required methods
fn to_value() -> Mapping;
fn map(i: usize) -> Option<Index>;
}Expand description
Mapping expression that describes memory layout and computes size for a given shape.
Required Associated Constants§
Required Methods§
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.