(&self, x: f32)
| 26 | |
| 27 | impl DataSource for SineWave { |
| 28 | fn sample(&self, x: f32) -> f32 { |
| 29 | (x * self.frequency * 2.0 * std::f32::consts::PI).sin() |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | fn main() -> Result<(), Box<dyn std::error::Error>> { |
nothing calls this directly
no outgoing calls
no test coverage detected