filter_map

Function filter_map 

Source
pub fn filter_map<I, F, T>(id: I, f: F) -> Subscription<T>
where I: Hash + 'static, F: Fn(Event) -> Option<T> + MaybeSend + 'static, T: 'static + MaybeSend,
Expand description

Creates a Subscription from a hashable id and a filter function.