Sum of all engine fractions. Must be `<= 1.0`.
(&self)
| 105 | |
| 106 | /// Sum of all engine fractions. Must be `<= 1.0`. |
| 107 | pub fn total_fraction(&self) -> f64 { |
| 108 | EngineId::ALL.iter().map(|&e| self.fraction_for(e)).sum() |
| 109 | } |
| 110 | |
| 111 | /// Validate that every fraction is positive and finite and that they |
| 112 | /// sum to no more than the whole. |
no test coverage detected