Reset the counter to zero
(&mut self)
| 97 | if self.is_at_limit() { // Calls &self method `is_at_limit` |
| 98 | // Already at limit, cannot increment |
| 99 | return false; |
| 100 | } |
| 101 | |
| 102 | // Can increment |
| 103 | self.count += 1; |
| 104 | true // Return true indicating success |