Trait Sorter

Source
pub trait Sorter: Fn(&Room, &Room) -> Ordering { }
Expand description

A trait “alias” that represents a sorter.

A sorter is simply a function that receives two &Rooms and returns a Ordering.

Implementors§

Source§

impl<F> Sorter for F
where F: Fn(&Room, &Room) -> Ordering,