Module dimensioned::dimensioned
[−]
[src]
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.
Among the included traits in dimensioned, there are a few that are used solely to
aid in generic programming and should not be implemented for anything outside this
module. They are Dimension, Dimensionless, and DimToString.
Reexports
pub use peano::{Same, Zero, Succ, Pred}; |
pub use peano::{P1, P2, P3, P4, P5, P6, P7, P8, P9}; |
pub use peano::{N1, N2, N3, N4, N5, N6, N7, N8, N9}; |
Structs
| Dim |
This is the primary struct that users of this library will interact with. |
Traits
| Cbrt |
Cbrt is used for implementing a |
| DimToString |
This trait allows human-friendly printing of dimensioned objects. It is used to implement the traits in std::fmt. |
| Dimension |
All types created for a unit system will implement this trait. No other types should
implement it. The struct |
| Dimensionless |
The only types that implement this trait are the |
| Pow |
Pow |
| Recip |
Recip is used for implementing a |
| Root |
Root |
| Sqrt |
Sqrt is used for implementing a |