Expand description

Description

dimension and unit system for general physical physical quantities.

Badges

Latest Release pipeline status coverage report

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

pub use unit::Unit;
pub use unit::Conv;

Modules

Structs

Static (compile time) Dimension.

Dynamic (runtime) Dimension

Represents physical quantity

Traits