pub trait IsSortableND {
// Required methods
fn n_dimensions() -> usize
where Self: Sized;
fn sort_dim(&mut self, dimension: usize) -> Result<()>;
}
Expand description
IsSortableND trait used for collections which can be sorted by certain dimensions. E.g. x,y,z
Required Methods§
Sourcefn n_dimensions() -> usizewhere
Self: Sized,
fn n_dimensions() -> usizewhere
Self: Sized,
Should return the number of dimensions. E.g. 2 for 2D space, 3 for 3D space etc.