Struct collected::FromUniqueHash [−][src]
Expand description
A wrapper around a collection U
that can only be collected or extended from an unique-valued iterator.
The wrapper maintains a HashSet internally. If an incoming value A
is duplicated,
it clears the internal collections and ignores 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 FromUniqueHash<U, A> where
U: FromIterator<A>,
A: Hash + Eq + Clone,
impl<U, A> FromIterator<A> for FromUniqueHash<U, A> where
U: FromIterator<A>,
A: Hash + Eq + Clone,
Creates a value from an iterator. Read more