Sorter

Trait Sorter 

Source
pub trait Sorter<T: Aabb>:
    Copy
    + Clone
    + Send
    + Sync {
    // Required method
    fn sort(&self, axis: impl Axis, bots: &mut [T]);
}
Expand description

Expose a common Sorter trait so that we may have two version of the tree where one implementation actually does sort the tree, while the other one does nothing when sort() is called.

Required Methods§

Source

fn sort(&self, axis: impl Axis, bots: &mut [T])

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.

Implementors§