Trait Offset

Source
trait Offset<D> {
    // Required method
    fn offset(&self, idx: D) -> usize;
}

Required Methods§

Source

fn offset(&self, idx: D) -> usize

Get the offset into the array for a given index.

Implementors§

Source§

impl<T, const NDIM: usize> Offset<[usize; NDIM]> for RArray<T, NDIM>