Module div_mod

Source
Expand description

Implementations of raits for simultaneously finding the quotient and remainder of two numbers, subject to various rounding rules.

These are the traits:

roundingby value or referenceby mutable reference (assignment)
towards $-\infty$DivModDivAssignMod
towards 0DivRemDivAssignRem
towards $\infty$CeilingDivModCeilingDivAssignMod