Expand description
Utility methods and functions that take an owned Vec and return a deduplicated owned Vec.
Traits§
- Into
Deduped - Extension trait to convert a vector into a deduplicated vector.
Functions§
- into_
deduped - Removes consecutive repeated elements in the vector according to the
PartialEqtrait implementation. - into_
deduped_ by - Removes all but the first of consecutive elements in the vector that resolve to the same value according to the given equality function.
- into_
deduped_ by_ key - Removes all but the first of consecutive elements in the vector that resolve to the same key.