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