[][src]Trait dasp_window::Window

pub trait Window<S> {
    type Output;
    fn window(phase: S) -> Self::Output;
}

An abstraction supporting different types of Window functions.

The type S represents the phase of the window, while the Output represents the window amplitude.

Associated Types

type Output

The type used to represent the window amplitude.

Loading content...

Required methods

fn window(phase: S) -> Self::Output

Returns the amplitude for the given phase, given as some Sample type.

Loading content...

Implementors

impl<S> Window<S> for Hanning where
    S: Sample
[src]

type Output = S

impl<S> Window<S> for Rectangle where
    S: Sample
[src]

type Output = S

Loading content...