pub trait DivRemEuclid<Rhs = Self> {
    type OutputDiv;
    type OutputRem;

    fn div_rem_euclid(self, rhs: Rhs) -> (Self::OutputDiv, Self::OutputRem);
}
Expand description

Compute Euclidean quotient and remainder at the same time.

Example

use dashu_base::DivRemEuclid;
assert_eq!((-23).div_rem_euclid(10), (-3, 7));

Required Associated Types

Required Methods

Implementations on Foreign Types

Implementors