Trait matrix_sdk_ui::room_list_service::filters::Filter

source ·
pub trait Filter: Fn(&RoomListEntry) -> bool { }
Expand description

A trait “alias” that represents a filter.

A filter is simply a function that receives a &RoomListEntry and returns a bool.

Implementors§

source§

impl<F> Filter for F
where F: Fn(&RoomListEntry) -> bool,