use crate::{DifferentiatorToIntegrator, FilterToSink, SamplerToSink, SignalToFilter}; use interface::{Data, Read, Update}; use std::ops::Deref; #[derive(Default)] pub struct Logging(Vec); impl Deref for Logging { type Target = Vec; fn deref(&self) -> &Self::Target { &self.0 } } impl Update for Logging {} impl Read for Logging { fn read(&mut self, data: Data) { self.0.push(*data); } } impl Read for Logging { fn read(&mut self, data: Data) { self.0.push(*data); } } impl Read for Logging { fn read(&mut self, data: Data) { self.0.push(*data); } } impl Read for Logging { fn read(&mut self, data: Data) { self.0.push(*data); } }