pub trait AnySet<T> {
// Required methods
fn contains(&self, value: &T) -> bool;
fn len(&self) -> usize;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
A trait for any collection that supports efficient containment checks.
This allows SmallSet to perform set operations (like difference or is_subset)
against standard library sets (HashSet, BTreeSet) without converting them first.