MCPcopy Index your code
hub / github.com/encounter/objdiff / from_iter

Method from_iter

objdiff-core/src/bindings/report.rs:307–316  ·  view source on GitHub ↗
(iter: T)

Source from the content-addressed store, hash-verified

305/// Allows [collect](Iterator::collect) to be used on an iterator of [Measures].
306impl FromIterator<Measures> for Measures {
307 fn from_iter<T>(iter: T) -> Self
308 where T: IntoIterator<Item = Measures> {
309 let mut measures = Measures::default();
310 for other in iter {
311 measures += other;
312 }
313 measures.calc_fuzzy_match_percent();
314 measures.calc_matched_percent();
315 measures
316 }
317}
318
319// Older JSON report types

Callers

nothing calls this directly

Calls 2

calc_matched_percentMethod · 0.80

Tested by

no test coverage detected