Function |checked_euclid_div
std/ops/num::|checked_euclid_div
Usage
|checked_euclid_div<N>(a, b)
Generics
◻ N:
CheckedEuclid
Parameters
↳ a:
N
↳ b:
N
Return
↴ Option<N>
Proceed to euclidian division of a
by b
, checking if division is possible or if overflow occurs
This function returns an option containing a Ă· b
, or none if division is not possible (as division by 0), or result cause overflow in data type.
ℹ️ For floating types, this function return infinity for divisions by 0
.