(iter: T)
| 305 | /// Allows [collect](Iterator::collect) to be used on an iterator of [Measures]. |
| 306 | impl 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 |
nothing calls this directly
no test coverage detected