Trait dashu_int::ops::DivRemAssign
source · pub trait DivRemAssign<Rhs = Self> {
type OutputRem;
fn div_rem_assign(&mut self, rhs: Rhs) -> Self::OutputRem;
}
Expand description
Compute quotient inplace and return remainder at the same time.
Examples
use dashu_base::DivRemAssign;
let mut n = 23;
let r = n.div_rem_assign(10);
assert!(n == 2 && r == 3);