Skip to main content

filter_map

Function filter_map 

Source
pub const fn filter_map<Func, In, Out, Next>(
    func: Func,
    next: Next,
) -> FilterMap<Next, Func>
where Func: FnMut(In) -> Option<Out>,
Expand description

Creates a FilterMap push that filters and maps items in one step.