docs.rs failed to build danwi-0.2.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.
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:
danwi-0.2.3
Work in progress
danwi
A dimensional analysis library for Rust with SI units, compile-time type
checking, and no_std support.
Usage
use *;
// create a quantity by multiplying units
let v = * ;
assert_eq!;
assert_eq!;
assert_eq!; // create a quantity using type alias
// convert between prefixes
let mv = v.;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
let i = v / ;
assert_eq!;
let t = + + + ;
assert_eq!;
assert_eq!;
assert_eq!;
let period = 1.0 * s;
let freq = 1.0 / period;
assert_eq!;
let a = from;
let b = 50.0 * cm;
let c = 0.001 * km;
let len = a + b + c;
println!; // Length: 101.5 m
println!; // Length: 101.5 m
println!; // Length: 10150 cm
println!; // Length: 0.1015 km