num-err

Crates.ionum-err
lib.rsnum-err
version0.1.1
created_at2025-07-11 21:13:21.104751+00
updated_at2025-07-14 10:29:53.497811+00
descriptionBikesheding the error type for num traits
homepage
repository
max_upload_size
id1748443
size49,175
dzmitry-lahoda (dzmitry-lahoda)

documentation

README

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 - borsh schema

  • protobuf3 - protobuf

  • parity-scale-codec3 - parity-scale-codec

  • schemars1 - schemars JSON schema

  • proptest1 - proptest strategy

  • arbitrary1 - arbitrary

  • arbitrary-int1 - arbitrary-int u2

  • error - dummy(for now) core::error::Error trait

Inspired

Commit count: 0

cargo fmt