Crate ext_ops

Source

Structs§

Overflow
Error raised when the result of a checked arithmetic operation is too high to be represented by the destination type.
Undefined
Error raised when the result of a checked arithmetic operation is undefined, indeterminate, or not a number.
Underflow
Error raised when the result of a checked arithmetic operation is too low to be represented by the destination type.

Enums§

ArithmeticError
Error raised when a checked arithmetic operation fails.
RangeError
Error raised when the result of a checked arithmetic operation is too high or too low to be represented by the destination type.

Traits§

SaturatingAdd
Addition operator which returns the closest possible value in the event of an overflow or underflow.
SaturatingMul
Multiplication operator which returns the closest possible value in the event of an overflow or underflow.
SaturatingNeg
Negation operator which returns the closest possible value in the event of an overflow or underflow.
SaturatingSub
Subtraction operator which returns the closest possible value in the event of an overflow or underflow.
TryAdd
Checked addition operator which returns a Result to indicate success or failure.
TryDiv
Checked division operator which returns a Result to indicate success or failure.
TryMul
Checked multiplication operator which returns a Result to indicate success or failure.
TryNeg
Checked negation operator which returns a Result to indicate success or failure.
TryRem
Checked remainder operator which returns a Result to indicate success or failure.
TrySub
Checked subtraction operator which returns a Result to indicate success or failure.
WrappingAdd
Addition operator which wraps around the type’s boundaries in case of overflow or underflow.
WrappingMul
Multiplication operator which wraps around the type’s boundaries in case of overflow or underflow.
WrappingNeg
Negation operator which wraps around the type’s boundaries in case of overflow or underflow.
WrappingSub
Subtraction operator which wraps around the type’s boundaries in case of overflow or underflow.