Skip to main content

Crate into_deduped

Crate into_deduped 

Source
Expand description

Utility methods and functions that take an owned Vec and return a deduplicated owned Vec.

Traits§

IntoDeduped
Extension trait to convert a vector into a deduplicated vector.

Functions§

into_deduped
Removes consecutive repeated elements in the vector according to the PartialEq trait 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.