Crate whippyunits

Crate whippyunits 

Source

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.