Expand description
Default dimension data for whippyunits
This crate provides canonical dimension data that is shared between the main whippyunits library and the proc macro crate without circular dependencies.
Re-exports§
pub use parser::*;pub use storage_unit::*;
Modules§
- dimension_
exponents - num
- Polyfill for generic const expressions.
- parser
- scale_
exponents - storage_
unit
Macros§
- dimension_
exponents - Construct
TypeDimensionExponentstype from an array of exponents.
Structs§
- Capitalized
Fmt - Dimension
- A dimension and its associated units.
- Dimension
Exponents Fmt - SiPrefix
- SI prefix information.
- Unit
- A unit.
Enums§
- System
- Unit system classification.
Functions§
- generate_
declarator_ trait_ name - Generate the declarator trait name for a unit based on its system, dimension, and properties.
- make_
plural - Convert a singular unit name to its plural form.
- to_
unicode_ superscript - Convert any integer to Unicode superscript notation Returns empty string for unity exponent (1) unless show_unity is true Returns “ˀ” for unknown values (i16::MIN)