trait Offset<D> { // Required method fn offset(&self, idx: D) -> usize; }
Get the offset into the array for a given index.
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".