Struct collected::UniquifyHash [−][src]
Expand description
A wrapper around a collection U
that ignores duplicated values from iterator.
The wrapper maintains a HashSet internally. It inserts incoming value A
to collection U
at most once, and ignores duplicated future values.
Implementations
Trait Implementations
Extends a collection with the contents of an iterator. Read more
🔬 This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
🔬 This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
impl<U, A> FromIterator<A> for UniquifyHash<U, A> where
U: FromIterator<A>,
A: Hash + Eq + Clone,
impl<U, A> FromIterator<A> for UniquifyHash<U, A> where
U: FromIterator<A>,
A: Hash + Eq + Clone,
Creates a value from an iterator. Read more