Skip to main content

Module units

Module units 

Source
Expand description

Unit conversion engine — 100+ built-in units across 14 categories.

The UnitRegistry holds all known units and provides O(1) lookup by symbol or name, with case-insensitive and plural matching. Conversion uses a base-unit normalization approach: every unit defines a factor and offset to convert to its category’s base unit, and conversions go through that common representation.

Structs§

UnitRegistry
Registry of known units and conversion logic.

Enums§

UnitError

Type Aliases§

Result