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§
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]
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".