dasp_peak

Trait Rectifier

Source
pub trait Rectifier<F>
where F: Frame,
{ type Output: Frame<NumChannels = F::NumChannels>; // Required method fn rectify(&mut self, frame: F) -> Self::Output; }
Expand description

Types that may be used to rectify a signal of frames F for a Peak detector.

Required Associated Types§

Source

type Output: Frame<NumChannels = F::NumChannels>

Frames that can be detected.

Required Methods§

Source

fn rectify(&mut self, frame: F) -> Self::Output

Rectify the given frame.

Implementors§

Source§

impl<F> Rectifier<F> for FullWave
where F: Frame,

Source§

type Output = <F as Frame>::Signed

Source§

impl<F> Rectifier<F> for NegativeHalfWave
where F: Frame,

Source§

impl<F> Rectifier<F> for PositiveHalfWave
where F: Frame,