dimensioned 0.3.1

Compile-time type checking of arbitrary unit systems.
docs.rs failed to build dimensioned-0.3.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: dimensioned-0.8.0

crates.io Build Status

Dimensioned

Dimensioned is a Rust library for compile-time type checking of arbitrary unit systems. It has its own website.

Here is a short example of its use:

extern crate dimensioned;
use dimensioned::si::{one, m, s};

fn main() {
    let x = 6.0 * m;
    let t = 3.0 * s;
    let v = 2.0 * m/s;
    assert_eq!(v, x/t);
}

For more in-depth examples and documentation, see the website.

Note: This library is unstable, and you should expect breaking changes for now. It also depends on unstable Rust features.