Trait matrix_sdk_ui::room_list_service::sorters::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,