[][src]Struct dasp_envelope::detect::Peak

pub struct Peak<R = FullWave> { /* fields omitted */ }

A Peak detector, generic over the FullWave, PositiveHalfWave, NegativeHalfWave rectifiers.

Required Features

  • When using dasp_envelope, this item requires the peak feature to be enabled.
  • When using dasp, this item requires the envelope-peak feature to be enabled.

Implementations

impl Peak<FullWave>[src]

pub fn full_wave() -> Self[src]

A signal rectifier that produces the absolute amplitude from samples.

Required Features

  • When using dasp_envelope, this item requires the peak feature to be enabled.
  • When using dasp, this item requires the envelope-peak feature to be enabled.

impl Peak<PositiveHalfWave>[src]

pub fn positive_half_wave() -> Self[src]

A signal rectifier that produces only the positive samples.

Required Features

  • When using dasp_envelope, this item requires the peak feature to be enabled.
  • When using dasp, this item requires the envelope-peak feature to be enabled.

impl Peak<NegativeHalfWave>[src]

pub fn negative_half_wave() -> Self[src]

A signal rectifier that produces only the negative samples.

Required Features

  • When using dasp_envelope, this item requires the peak feature to be enabled.
  • When using dasp, this item requires the envelope-peak feature to be enabled.

Trait Implementations

impl<R: Clone> Clone for Peak<R>[src]

impl<R: Copy> Copy for Peak<R>[src]

impl<R: Debug> Debug for Peak<R>[src]

impl<F, R> Detect<F> for Peak<R> where
    F: Frame,
    R: Rectifier<F>, 
[src]

type Output = R::Output

The result of detection.

impl<R: Eq> Eq for Peak<R>[src]

impl<R> From<R> for Peak<R>[src]

impl<R: PartialEq> PartialEq<Peak<R>> for Peak<R>[src]

impl<R> StructuralEq for Peak<R>[src]

impl<R> StructuralPartialEq for Peak<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for Peak<R> where
    R: RefUnwindSafe

impl<R> Send for Peak<R> where
    R: Send

impl<R> Sync for Peak<R> where
    R: Sync

impl<R> Unpin for Peak<R> where
    R: Unpin

impl<R> UnwindSafe for Peak<R> where
    R: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<S, T> Duplex<S> for T where
    T: FromSample<S> + ToSample<S>, 
[src]

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<S> FromSample<S> for S[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> ToSample<U> for T where
    U: FromSample<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.