#![allow(clippy::approx_constant)]
#[derive(Debug)]
pub(crate) enum AtomKind {
Base(usize),
Derived {
value: f64,
unit: &'static str,
},
Special {
func: &'static str,
value: f64,
unit: &'static str,
},
}
#[derive(Debug)]
pub(crate) struct AtomDef {
pub code: &'static str,
pub ci_code: &'static str,
pub name: &'static str,
pub is_metric: bool,
pub is_arbitrary: bool,
pub kind: AtomKind,
}
#[derive(Debug)]
pub(crate) struct PrefixDef {
pub code: &'static str,
pub ci_code: &'static str,
pub name: &'static str,
pub factor: f64,
}
include!(concat!(env!("OUT_DIR"), "/ucum_tables.rs"));