Trait GainCalculatorGenerator

Source
pub trait GainCalculatorGenerator {
    type Calculator: GainCalculator;

    // Required method
    fn generate(&mut self, device: &Device) -> Self::Calculator;
}
Available on crate feature gain only.
Expand description

A trait for generating a calculator for the gain operation.

Required Associated Types§

Source

type Calculator: GainCalculator

The type of the calculator that actually performs the calculation.

Required Methods§

Source

fn generate(&mut self, device: &Device) -> Self::Calculator

Generate a calculator for the given device.

Implementors§