pub trait Backend: Send + Sync {
// Required method
fn fft2(
&self,
values: &mut [Complex64],
shape: (usize, usize),
direction: FftDirection,
column_scratch: &mut [Complex64],
) -> Result<()>;
// Provided methods
fn capabilities(&self) -> BackendCapabilities { ... }
fn resident_backend(&self) -> Option<&dyn ResidentBackend> { ... }
}Expand description
Minimal backend boundary. Buffers stay owned by reconstruction state.