Open
Description
pub const fn saturating_div(self, rhs: u64) -> u64
This function will panic if rhs is 0.
This makes no sense. The only way that u64 / u64
could overfllow is if rhs = 0
.
The same is true for the other unsigned integer types. The signed types have the excuse that they wouldn't know whether to count division by zero as saturating to -ve or +ve maximum.