Registry / utility / quantity

quantity

JSON →
library0.14.0rscratesunverified

Representation of quantities, i.e. of unit valued scalars and arrays.

# Cargo.toml [dependencies] quantity = "0.14.0"
INSTALL
IMPORT
SIG · QUANTITY
Q
quantity
utilityrustv0.14.0
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.

Quantity
use quantity::Quantity;

Create a quantity with a value and unit.

use quantity::Quantity; fn main() { let length = Quantity::new(5.0, "m"); println!("Length: {} {}", length.value(), length.unit()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.14.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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