pub trait DivRem<Rhs = Self> {
type OutputDiv;
type OutputRem;
fn div_rem(self, rhs: Rhs) -> (Self::OutputDiv, Self::OutputRem);
}
Expand description
Compute quotient and remainder at the same time.
Example
use dashu_base::DivRem;
assert_eq!(23.div_rem(10), (2, 3));