to_sorted_vec
The elements of set as a sorted Vec.
A HashSet iterates in an unspecified order that changes between runs; use this wherever the
order is visible (output, snapshots, tests).
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 |
|---|---|---|
set | &HashSet<T, S> | The set to list. |
Returns
Section titled “Returns”Vec<T> — The elements in ascending order.
