Expand description
§Bikeshedding
around
pub enum MathErrors {
InvalidInput,
Overflow,
Underflow,
DivisionByZero,
}- performance
- only strict string matches, not upper or lowercase coersion for parse and serde
- does not capture backtrace nor errored values
- not float errors nor numerics errors
- JSON serde is string
- unit structs typed variants
§Features
-
default- [] -
serde1--serde -
borsh1-borsh -
borsh1_unstable__schema-borshschema -
protobuf3-protobuf -
parity-scale-codec3-parity-scale-codec -
schemars1-schemarsJSON schema -
proptest1-propteststrategy -
arbitrary1-arbitrary -
arbitrary-int1-arbitrary-intu2 -
error- dummy(for now)core::error::Errortrait
§Inspired
- https://docs.rs/sp-arithmetic/latest/sp_arithmetic/enum.ArithmeticError.html