checked_ops 0.1.0

Automatic checked arithmetic operations in Rust
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented2 out of 2 items with examples
  • Size
  • Source code size: 14.29 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.3 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • kamadak/checked_ops-rs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kamadak

Automatic checked arithmetic operations in Rust

Are you tired of writing checked arithmetic operations like this?

  a.checked_add(b).and_then(|t| t.checked_mul(c))

The checked_ops crate to the rescue.

  checked_ops!((a + b) * c)