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§
Sourcetype Calculator: GainCalculator
type Calculator: GainCalculator
The type of the calculator that actually performs the calculation.
Required Methods§
Sourcefn generate(&mut self, device: &Device) -> Self::Calculator
fn generate(&mut self, device: &Device) -> Self::Calculator
Generate a calculator for the given device.