Get thresholds for all generations
(&self)
| 224 | |
| 225 | /// Get thresholds for all generations |
| 226 | pub fn get_threshold(&self) -> (u32, u32, u32) { |
| 227 | ( |
| 228 | self.generations[0].threshold(), |
| 229 | self.generations[1].threshold(), |
| 230 | self.generations[2].threshold(), |
| 231 | ) |
| 232 | } |
| 233 | |
| 234 | /// Set thresholds |
| 235 | pub fn set_threshold(&self, t0: u32, t1: Option<u32>, t2: Option<u32>) { |