Crate safe_math

source

Macros§

  • Takes three expressions, two number inputs and one variant of the enum Operation. It combines the two numbers in whatever way was chosen or in the case of most errors evaluates to the Err variant with the field containing the larger of the two input numerical expressions

Enums§

  • Has two variants Add and Multiply with no fields, used in the safe_math!() macro