pub trait GridTrait<T>:
Clone
+ Debug
+ Send
+ Syncwhere
T: Copy,{
// Required methods
fn get_borders(&self) -> &Array1<T>;
fn idx(&self, x: T) -> CellIndex;
// Provided methods
fn cell_count(&self) -> usize { ... }
fn get_start(&self) -> T { ... }
fn get_end(&self) -> T { ... }
}
Expand description
Grid trait for dm or dt axis
Required Methods§
Sourcefn get_borders(&self) -> &Array1<T>
fn get_borders(&self) -> &Array1<T>
Cell borders coordinates, cell_count() + 1 length Array1
Provided Methods§
Sourcefn cell_count(&self) -> usize
fn cell_count(&self) -> usize
Number of cells
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.