Skip to main content

units

Macro units 

Source
macro_rules! units {
    (Percent) => { ... };
    ($base_unit:ident) => { ... };
    ($prefix:ident, $base_unit:ident) => { ... };
}
Expand description

Assembles fully-specified measurement units for NumericStateRecorder, combining a base unit with an optional prefix.

Examples: - units!(Volt) - units!(Percent) - units!(Kilo, Hertz) - units!(Milli, Amp)