| Crates.io | checked_ops |
| lib.rs | checked_ops |
| version | 0.1.0 |
| created_at | 2020-03-13 12:24:42.025015+00 |
| updated_at | 2020-03-13 12:24:42.025015+00 |
| description | Automatic checked arithmetic operations in Rust |
| homepage | https://github.com/kamadak/checked_ops-rs |
| repository | https://github.com/kamadak/checked_ops-rs |
| max_upload_size | |
| id | 218131 |
| size | 14,294 |
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)