Function |checked_euclid_rem
std/ops/num::|checked_euclid_rem
Usage
|checked_euclid_rem<N>(a, b)
Generics
◻ N: CheckedEuclid
Parameters
↳ a: N
↳ b: N
Return
↴ Option<N>
Gives euclidian remainder of a divided by b, checking if division is possible or if overflow occurs
This function returns an option containing a _mod_ b, or none if division is not possible (as division by 0), or result cause overflow in data type.