Trait rust_3d::traits::IsSortableND [] [src]

pub trait IsSortableND {
    fn n_dimensions() -> usize
    where
        Self: Sized
;
fn sort_dim(&mut self, dimension: usize) -> Result<()>; }

IsSortableND trait used for collections which can be sorted by certain dimensions. E.g. x,y,z

Required Methods

Should return the number of dimensions. E.g. 2 for 2D space, 3 for 3D space etc.

Should sort all elements by the given dimension

Implementors