Registry / utility / conv
library0.3.3rscratesunverified

Provides conversion traits with more specific semantics than the standard From/Into or as operator.

# Cargo.toml [dependencies] conv = "0.3.3"
INSTALL
IMPORT
SIG · CONV
C
conv
utilityrustv0.3.3
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.

ApproxFrom
✓ use conv::ApproxFrom;

Converts a f64 to f32 with approximate conversion.

use conv::ApproxFrom; fn main() { let val: f64 = 3.14159; let approx: f32 = ApproxFrom::<f32>::approx_from(val).unwrap(); println!("Approximate: {}", approx); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
conv — cargo add conv · libregistry