Skip to main content

Module si

Module si 

Source
Expand description

SI-dimensioned f64 newtypes — the characterized-descriptor surface types.

Each type NAMES its unit and KNOWS its physical dimension, checked against the exact Dimension algebra (rational exponents included — VoltsPerRootHz is V·Hz^(−1/2)). The payload stays in the NAMED unit — Nanoseconds(8.0) is 8 ns, no hidden conversion — so flipping a bare f64 field to its newtype never moves a pinned value, only the type. Payloads are plain f64 because the certified engines stay outward-rounded f64; exact Rational arithmetic lives at unit-conversion boundaries (quantity.rs).

Structs§

Hertz
Hertz — frequency (s⁻¹).
Kelvin
Kelvin — thermodynamic temperature.
Nanoseconds
Nanoseconds — time, payload in ns (the unit rides the NAME, not a hidden scale).
PerKelvin
Per-kelvin — temperature coefficients (tempco), K⁻¹.
Seconds
Seconds — time.
Siemens
Siemens — conductance (Ω⁻¹), the transconductor’s gm unit.
Volts
Volts — electric potential.
VoltsPerRootHz
Volts per root hertz — noise spectral density, the rational-exponent payoff: V·Hz^(−1/2).
Watts
Watts — power, the thermal solver’s injection unit.