/// Creates an iterator which uses a closure to /// determine if an element should be yielded. #[must_use = "iterators do nothing unless iterated over"] fn filter<P>(self, predicate: P) -> Filter<Self, P> where P: async FnMut(&Self::Item) -> bool, // <- check this out Self: Sized, { Filter::new(self, predicate) }
https://cdn.masto.host/tootyoshis/media_attachments/files/111/941/921/075/704/293/original/cb20dc235919251e.png