Registry / utility / zng-unit

zng-unit

JSON →
library0.7.0rscratesunverified

Part of the zng project, providing unit types and conversions for UI development.

# Cargo.toml [dependencies] zng-unit = "0.7.0"
INSTALL
IMPORT
SIG · ZNG-UNIT
Z
zng-unit
utilityrustv0.7.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.

Unit
use zng_unit::Unit;

Using zng-unit for UI units

use zng_unit::Unit; fn main() { let unit = Unit::Px(10.0); println!("Unit: {:?}", unit); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.7.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
40 hits · last 30 days
node
34
Resources
zng-unit — cargo add zng-unit · libregistry