pub trait Sorter: Fn(&RoomListItem, &RoomListItem) -> Ordering { }Expand description
A trait “alias” that represents a sorter.
A sorter is simply a function that receives two &Rooms and returns a
Ordering.
pub trait Sorter: Fn(&RoomListItem, &RoomListItem) -> Ordering { }A trait “alias” that represents a sorter.
A sorter is simply a function that receives two &Rooms and returns a
Ordering.