checked_ops 0.1.0

Automatic checked arithmetic operations in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
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)