Trait SorterClass

Source
pub trait SorterClass<'s, R> {
    // Required method
    fn instantiate(&self, reverse: bool) -> Box<dyn Sorter<R> + 's>;
}
Available on crate feature sort only.
Expand description

Make a type-elided Sorter.

Instances of SorterClass can be stored in an OrderingSet and used to later instantiate Sorter instances.

Required Methods§

Source

fn instantiate(&self, reverse: bool) -> Box<dyn Sorter<R> + 's>

Create a Sorter, optionally reversing the order.

Implementors§

Source§

impl<'s, T: Ord> SorterClass<'s, T> for CompareClass