Skip to main content

Crate whippyunits_proc_macros

Crate whippyunits_proc_macros 

Source

Macrosยง

define_generic_dimension
define_literals
define_unit_declarators
Define a set of declarators that auto-convert to a given set of base units.
output
Convert an arithmetic expression to associated type syntax (with ::Output).
proc_qty
Creates a concrete Quantity type from a unit expression.
proc_quantity
Creates a Quantity from a value and unit expression.
proc_unit
Creates a bare Unit type (scale + dimension, no storage type, brand, or value) from a unit expression.
proc_value
Access the underlying numeric value of a Quantity.