Skip to main content

FftPlanner

Trait FftPlanner 

Source
pub trait FftPlanner {
    // Required methods
    fn new() -> Self;
    fn plan_fft(&mut self, len: usize, direction: FftDirection) -> Box<dyn Fft>;
    fn max_supported_len(&self) -> usize;

    // Provided methods
    fn plan_fft_forward(&mut self, len: usize) -> Box<dyn Fft> { ... }
    fn plan_fft_inverse(&mut self, len: usize) -> Box<dyn Fft> { ... }
}
Expand description

Factory for Fft plans.

Required Methods§

Source

fn new() -> Self

Create a new planner.

Source

fn plan_fft(&mut self, len: usize, direction: FftDirection) -> Box<dyn Fft>

Plan an FFT of len complex samples in the given direction.

Source

fn max_supported_len(&self) -> usize

Largest FFT length this backend can plan.

Provided Methods§

Source

fn plan_fft_forward(&mut self, len: usize) -> Box<dyn Fft>

Plan a forward FFT of len complex samples.

Source

fn plan_fft_inverse(&mut self, len: usize) -> Box<dyn Fft>

Plan an inverse FFT of len complex samples.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§