(self, other: Self)
| 483 | /// Performs wrapping division |
| 484 | #[inline] |
| 485 | pub fn wrapping_div(self, other: Self) -> Self { |
| 486 | match self.div_rem(other) { |
| 487 | Ok((v, _)) => v, |
| 488 | Err(DivRemError::DivideByZero) => panic!("attempt to divide by zero"), |
| 489 | Err(_) => Self::MIN, |
| 490 | } |
| 491 | } |
| 492 | |
| 493 | /// Performs checked division |
| 494 | #[inline] |