#checked #overflow #integer #expressions #arithmetic #proc-macro

checkedexpr

一个用于使编写checked_*链更加方便的过程宏

6个版本

0.3.0 2021年5月31日
0.2.3 2021年5月31日
0.1.0 2021年5月30日

21 in #overflow

MIT/Apache

6KB
78 代码行

checked_expr

Rust宏,用于简化编写checked_{add,sub,div,…}链


lib.rs:

提供过程宏的库,使普通操作易于转换为溢出检查操作

依赖

~1.5MB
~35K SLoC