Trait Function

Source
pub trait Function {
    // Required method
    fn compute(n: Precision, N: Precision) -> Precision;
}
Expand description

Trait to implement a window function.

Required Methods§

Source

fn compute(n: Precision, N: Precision) -> Precision

Computes the value for the given index n and the given window size N.

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§