Module matrix_sdk_ui::room_list_service::sorters
source · Expand description
A collection of room sorters.
Traits§
- A trait “alias” that represents a sorter.
Functions§
- Create a new sorter that will run multiple sorters. When the nth sorter returns
Ordering::Equal
, the next sorter is called. It stops at soon as a sorter returnOrdering::Greater
orOrdering::Less
. - Create a new sorter that will sort two
Room
by name, i.e. by comparing their display names. A lexicographically ordering is applied, i.e. “a” < “b”. - Create a new sorter that will sort two
Room
by recency, i.e. by comparing theirRoomInfo::recency_stamp
value. TheRoom
with the newest recency stamp comes first, i.e. newest < oldest.
Type Aliases§
- Type alias for a boxed sorter function.