use-measure
Practical measurement values and conversion helpers.
use-measure provides a lightweight Measurement type plus Conversion helpers for common linear
and affine conversions. It is intended to be the practical layer that sits on top of lower-level
unit descriptions.
What this crate provides
| Item | Purpose |
|---|---|
Measurement |
Small value-plus-unit container |
Conversion |
Linear or affine conversion definition |
compose() |
Helper for chaining compatible conversions |
Installation
[]
= "0.1.0"
Example
use ;
let kilometers_to_meters = linear;
let meters_to_centimeters = linear;
let kilometers_to_centimeters = compose.unwrap;
let distance = new;
assert_eq!;
Scope
- Explicit conversions only.
- Simple, auditable arithmetic.
- No automatic unit graph or uncertainty tracking yet.