MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / hash_deduplicate

Method hash_deduplicate

crates/data-structures/src/error_stream.rs:213–217  ·  view source on GitHub ↗

Hash and deduplicate the errors in the error stream. The resulting error stream has an arbitrary order.

(mut self)

Source from the content-addressed store, hash-verified

211 /// Hash and deduplicate the errors in the error stream.
212 /// The resulting error stream has an arbitrary order.
213 pub fn hash_deduplicate(mut self) -> Self {
214 let set = self.0.drain(..).collect::<HashSet<_>>();
215 self.0.extend(set);
216 self
217 }
218}
219
220impl<E> IntoIterator for ErrorStream<E> {

Callers

nothing calls this directly

Calls 2

drainMethod · 0.80
extendMethod · 0.45

Tested by

no test coverage detected