Registry / utility / muldiv

muldiv

JSON →
library1.0.1rscratesunverified

Provides a trait for numeric types to perform combined multiplication and division with overflow protection.

# Cargo.toml [dependencies] muldiv = "1.0.1"
INSTALL
IMPORT
SIG · MULDIV
M
muldiv
utilityrustv1.0.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.

MulDiv
use muldiv::MulDiv;

Computes (10 * 3) / 2 with overflow protection.

use muldiv::MulDiv; fn main() { let result: u32 = 10u32.mul_div(3, 2); println!("{}", result); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
muldiv — cargo add muldiv · libregistry