union_all
The union of every set in sets.
HashSet::union 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.
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 merge. |
Returns
Section titled “Returns”HashSet<T> — A new set with every element that appears in at least one of sets.
