Skip to main content

oxilean_std/hashset/
oxihashset_all_group.rs

1//! # OxiHashSet - all_group Methods
2//!
3//! This module contains method implementations for `OxiHashSet`.
4//!
5//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
6
7use super::oxihashset_type::OxiHashSet;
8use std::hash::Hash;
9
10impl<T: Eq + Hash + Clone> OxiHashSet<T> {
11    /// Check whether all elements satisfy `predicate`.
12    pub fn all<F: Fn(&T) -> bool>(&self, predicate: F) -> bool {
13        self.inner.iter().all(predicate)
14    }
15}