checked_ops

Crates.iochecked_ops
lib.rschecked_ops
version0.1.0
sourcesrc
created_at2020-03-13 12:24:42.025015
updated_at2020-03-13 12:24:42.025015
descriptionAutomatic checked arithmetic operations in Rust
homepagehttps://github.com/kamadak/checked_ops-rs
repositoryhttps://github.com/kamadak/checked_ops-rs
max_upload_size
id218131
size14,294
KAMADA Ken'ichi (kamadak)

documentation

https://docs.rs/checked_ops

README

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)
Commit count: 12

cargo fmt