Enable the counter
(&mut self)
| 102 | // Can increment |
| 103 | self.count += 1; |
| 104 | true // Return true indicating success |
| 105 | } |
| 106 | |
| 107 | // Increment the counter by a specific amount. Clamps at the limit. |
| 108 | // Returns the actual amount the counter was incremented by. |
| 109 | fn increment_by(&mut self, amount: u32) -> u32 { |