Crate dimensioned [] [src]

Compile-time dimensional analysis for various unit systems using Rust's type system.

Its goal is to provide zero cost unit safety while requiring minimal effort from the programmer.

For a short introduction and some examples, check out the readme on GitHub.

Reexports

pub extern crate typenum;
pub extern crate generic_array;
pub use traits::*;
pub use unit_systems::si;
pub use unit_systems::ucum;
pub use unit_systems::cgs;
pub use unit_systems::mks;
pub use unit_systems::fps;

Modules

array

Tools for converting from type arrays of type numbers to generic arrays.

conversion

Conversion between unit systems

dimensions

Marker traits for various dimensions

f32prefixes

Constants for all SI prefixes as f32s

f64prefixes

Constants for all SI prefixes as f64s

traits

Traits for working generically with dimensioned

unit_systems

Predefined unit systems

Macros

derived

Create a derived unit based on existing ones

make_units

Create a new unit system

tarr

Construct a type-level array of type-level integers