metron_core/macros/unit_exp_scale.rs
1#[macro_export]
2macro_rules! impl_unit_exp_scale {
3 ( $unit_self:ty , ( $exp_scale:ty ) ) => {
4 $crate::impl_unit_exp_scale!($exp_scale |: $unit_self => $unit_self);
5 };
6 ( $exp_scale:ty |: $unit_base:ty => $unit_self:ty ) => {
7 impl metron_core::unit::scale::exp::ExponentialScaledUnit for $unit_self {
8 type ExponentialScale = $exp_scale;
9 type BaseUnit = $unit_base;
10 }
11 };
12}