[−][src]Struct dasp_envelope::detect::Peak
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]
F: Frame,
R: Rectifier<F>,
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,
R: RefUnwindSafe,
impl<R> Send for Peak<R> where
R: Send,
R: Send,
impl<R> Sync for Peak<R> where
R: Sync,
R: Sync,
impl<R> Unpin for Peak<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for Peak<R> where
R: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<S, T> Duplex<S> for T where
T: FromSample<S> + ToSample<S>,
[src]
T: FromSample<S> + ToSample<S>,
impl<T> From<!> for T
[src]
impl<T> From<T> for T
[src]
impl<S> FromSample<S> for S
[src]
fn from_sample_(s: S) -> S
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> ToSample<U> for T where
U: FromSample<T>,
[src]
U: FromSample<T>,
fn to_sample_(self) -> U
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,