Function filter

Source
pub fn filter<I, F>(predicate: F) -> Pipe<I, I>
where F: Fn(&I) -> bool + Send + Sync + Clone + 'static, I: Send + 'static,
Expand description

Create a pipe that filters elements based on the predicate