Return the number of steps between the start and end of the counter.
(&self)
| 261 | impl Counter { |
| 262 | /// Return the number of steps between the start and end of the counter. |
| 263 | fn steps(&self) -> usize { |
| 264 | if self.stride == 0 { |
| 265 | return 0; |
| 266 | } |
| 267 | (self.end.wrapping_sub(self.start) / self.stride) as usize |
| 268 | } |
| 269 | |
| 270 | /// Gets the minimum and maximum value of the counter. |
| 271 | fn min_max(&self) -> MinMax { |
no outgoing calls
no test coverage detected