(self, other: Self)
| 524 | } |
| 525 | |
| 526 | fn umin(self, other: Self) -> ValueResult<Self> { |
| 527 | let lhs = self.clone().into_int_unsigned()?; |
| 528 | let rhs = other.clone().into_int_unsigned()?; |
| 529 | if lhs < rhs { Ok(self) } else { Ok(other) } |
| 530 | } |
| 531 | |
| 532 | fn smin(self, other: Self) -> ValueResult<Self> { |
| 533 | if self < other { Ok(self) } else { Ok(other) } |
no test coverage detected