intersection_all
The elements that appear in every set of sets.
HashSet::intersection only combines two sets and returns a lazy iterator; this takes any
number of sets and returns an owned set. An empty slice gives an empty set (there is no set
to draw elements from), not “everything”.
Import
Section titled “Import”Cargo feature set (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
sets | &[HashSet<T, S>] | The sets to intersect. |
Returns
Section titled “Returns”HashSet<T> — A new set with the elements common to all of sets.
