Trait sample::peak::Rectifier [−][src]
pub trait Rectifier<F> where
F: Frame, { type Output: Frame<NumChannels = F::NumChannels>; fn rectify(&mut self, frame: F) -> Self::Output; }
Types that may be used to rectify a signal of frames F
for a Peak
detector.
Associated Types
type Output: Frame<NumChannels = F::NumChannels>
Frames that can be detected.
Required Methods
Implementors
impl<F> Rectifier<F> for FullWave where
F: Frame, type Output = F::Signed;impl<F> Rectifier<F> for PositiveHalfWave where
F: Frame, type Output = F;impl<F> Rectifier<F> for NegativeHalfWave where
F: Frame, type Output = F;