Re-exports§
pub use quantity::Quantity;
Modules§
- api
- Arithmetic, rescaling, and display traits for the Quantity type.
- default_
declarators - Default declarators for Quantity instances.
- dimension_
traits - Constrain Quantity types dimensionally while leaving the scale unspecified.
- quantity
- Zero-cost unit-safe wrapper type for numeric data.
- serialization
- Serialize and deserialize Quantity instances to and from strings and JSON objects.
Macros§
- define_
unit_ declarators - Creates a branded or auto-rescaling Quantity declarator module.
- from_
json - Deserializes a Quantity from JSON representation.
- from_
string - Deserializes a Quantity from a string representation.
- output
- Expands operator expressions to associated type outputs.
- quantity
- Creates a Quantity from a value and unit expression.
- rescale
- Rescale a Quantity to a different unit of the same dimension.
- unit
- Creates a concrete Quantity type from a unit expression.
- value
- Access the underlying numeric value of a Quantity.
Attribute Macros§
- op_
result - Transforms operator expressions in where clauses into trait bounds.