1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use super::{kHz, Freq, Frequency, Hz};

impl Frequency for Freq<f32> {}

impl std::ops::Mul<Hz> for f32 {
    type Output = Freq<f32>;

    fn mul(self, _rhs: Hz) -> Self::Output {
        Self::Output { freq: self }
    }
}

impl std::ops::Mul<kHz> for f32 {
    type Output = Freq<f32>;

    fn mul(self, _rhs: kHz) -> Self::Output {
        Self::Output { freq: self * 1e3 }
    }
}