Crate physical_quantity
source · [−]Expand description
Description
dimension and unit system for general physical physical quantities.
Badges
Usage
use ::physical_quantity::*;
let inch: Unit<f64, _> = "in.".parse().unwrap();
let pq = inch.pq(1f64);
let mm: Unit<f64, _> = "mm".parse().unwrap();
let inch2mm = mm.value(pq).unwrap();
assert_eq!(inch2mm, 25.4);Project status
This package is in the very early stage.
Re-exports
Modules
Structs
Static (compile time) Dimension.
Dynamic (runtime) Dimension
Represents physical quantity