Skip to main content

filter

Function filter 

Source
pub const fn filter<Func, Item, Next>(
    func: Func,
    next: Next,
) -> Filter<Next, Func>
where Func: FnMut(&Item) -> bool,
Expand description

Creates a Filter push that filters items based on a predicate.