Skip to main content

Module units

Module units 

Source
Expand description

Physical quantity newtypes (Weight, Speed, Accel). Physical quantity newtypes for compile-time unit safety.

Structs§

Accel
Acceleration / deceleration rate (always non-negative, distance units per second²).
Speed
Maximum travel speed (always non-negative, distance units per second).
UnitError
Error returned when constructing a unit type from an invalid f64.
Weight
Weight / mass (always non-negative).