Returns the number of containers represented by this statistics This picks the length of the first array as all arrays must have the same length (which is verified by `assert_invariants`).
(&self)
| 2183 | /// picks the length of the first array as all arrays must have the same |
| 2184 | /// length (which is verified by `assert_invariants`). |
| 2185 | fn len(&self) -> usize { |
| 2186 | // pick the first non zero length |
| 2187 | self.arrays().iter().map(|a| a.len()).next().unwrap_or(0) |
| 2188 | } |
| 2189 | |
| 2190 | /// Ensure that the lengths of all arrays are consistent |
| 2191 | fn assert_invariants(&self) { |
no test coverage detected