daisy/src/quantity/mod.rs

28 lines
650 B
Rust
Raw Normal View History

2023-04-07 20:55:23 -07:00
/*
Quantity:
Represents a value with a unit attached to it.
Units have yet to be implemented.
f64q: a quantity based on plain f64s
floatq: a quantity using rug bigfloat
rationalq: a quantity using rug rationals
All of the above are ONLY used for values.
There is only one kind of unit type.
The cfg_if blocks here are a temporary hack to allow for
cross-compilation to other systems. RUG does not work on all systems.
*/
2023-04-08 20:26:07 -07:00
mod scalar;
pub(in crate::quantity) use crate::quantity::scalar::Scalar;
2023-04-08 16:47:47 -07:00
mod unit;
pub use crate::quantity::unit::Unit;
pub use crate::quantity::unit::BaseUnit;
2023-04-07 18:11:20 -07:00
2023-04-08 20:26:07 -07:00
mod quantity;
2023-04-01 13:50:52 -07:00
pub use crate::quantity::quantity::Quantity;