Expand description
Automatic checked arithmetic operations in Rust.
The checked_ops macro takes an expression and expands it into a
checked form.
You no longer need to type:
a.checked_add(b).and_then(|t| t.checked_mul(c))You can just do:
checked_ops!((a + b) * c)The current implementation has several limitations.
See the documentation of checked_ops macro for details.
Macros§
- checked_
ops - Takes an expression and expands it into a “checked” form.