Registry / utility / wrapping-macro

wrapping-macro

JSON →
library0.2.1rscratesunverified

Provides a macro for wrapping arithmetic operations with overflow handling.

# Cargo.toml [dependencies] wrapping-macro = "0.2.1"
INSTALL
IMPORT
SIG · WRAPPING-MACRO
W
wrapping-macro
utilityrustv0.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

wrapping
✓ use wrapping_macro::wrapping;

Performs wrapping addition on two u8 values.

use wrapping_macro::wrapping; fn main() { let result = wrapping!(256u8 + 256u8); println!("Wrapping result: {}", result); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
wrapping-macro — cargo add wrapping-macro · libregistry