dasp_window

Trait Window

Source
pub trait Window<S> {
    type Output;

    // Required method
    fn window(phase: S) -> Self::Output;
}
Expand description

An abstraction supporting different types of Window functions.

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

Required Associated Types§

Source

type Output

The type used to represent the window amplitude.

Required Methods§

Source

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

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§