(&self, min: i64, max: i64)
| 191 | |
| 192 | impl Clamp for Region { |
| 193 | fn clamp(&self, min: i64, max: i64) -> Self { |
| 194 | Region { |
| 195 | target: self.target.clone(), |
| 196 | start: cmp::max(self.start, min), |
| 197 | end: cmp::min(self.end, max), |
| 198 | } |
| 199 | } |
| 200 | } |
| 201 | |
| 202 | impl FromStr for Region { |
no test coverage detected