Skip to main content

GridImpl

Trait GridImpl 

Source
pub trait GridImpl<const N: usize> {
    // Required methods
    fn idx_to_ndidx(&self, idx: usize) -> [usize; N];
    fn ndidx_to_idx(&self, ndidx: &[usize; N]) -> usize;
    fn point_to_ndidx(&self, p: &[f64; N]) -> [usize; N];
}

Required Methods§

Source

fn idx_to_ndidx(&self, idx: usize) -> [usize; N]

Source

fn ndidx_to_idx(&self, ndidx: &[usize; N]) -> usize

Source

fn point_to_ndidx(&self, p: &[f64; N]) -> [usize; N]

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl GridImpl<2> for Grid2D

Source§

impl GridImpl<3> for Grid3D

Source§

impl<const N: usize> GridImpl<N> for GridND<N>