pub trait CheckedDiv<Rhs = Self> {
type Output;
// Required method
const fn checked_div(self, rhs: Rhs) -> Option<Self::Output>;
}
Expand description
✅ Checked division. Returns None
on division by zero or overflow.
§Panics
This function never panics.