Crate dimensioned [] [src]

dimensioned

dimensioned is a library for compile time type checking for arbitrary unit systems.

I will do my best to provide detailed documentation and examples here.

For more in depth and basic tutorials, please check here.

Reexports

pub use dimensioned::*;

Modules

cgs

The cgs module provides a unit system for use with Gaussian CGS units. It was generated using the make_units! macro. See its documentation for more information.

dimensioned

This module allows dimensioned to be very flexible. It creates the Dim<D, V> type, which is the type that will be used for all dimensioned objects. It then implements as many traits from std as generically as possible.

peano

Peano numbers allow us to do arithmetic at compile time using Rust's type system.

si

The si module provides a unit system for use with SI units. It was generated using the make_units! macro. See its documentation for more information.

Macros

count_args!

Counts the number of arguments its called with and gives you the total

dim_impl_binary!
dim_impl_unary!
make_units!
make_units_adv!