pub trait CheckedDiv<Rhs = Self> {
type Output;
// Required method
fn checked_div(self, rhs: Rhs) -> Option<Self::Output>;
}Expand description
Checked division supporting potentially different operand widths.
Division returns None when the divisor is zero.
Required Associated Types§
Required Methods§
Sourcefn checked_div(self, rhs: Rhs) -> Option<Self::Output>
fn checked_div(self, rhs: Rhs) -> Option<Self::Output>
Divides self by rhs, returning None when rhs is zero.