//! Translate indexes
usesuper::Transform;/// Translate the index
pubstructTranslate<const D:usize>(pub [isize; D]);/// Apply the transformation to the given index
impl<const D:usize>Transform<D>forTranslate<D>{fnapply(&self, index:&mut [isize; D]){// flip the indexes
for(d, i)in index.iter_mut().enumerate(){*i +=self.0[d];}}}