pub trait GainCalculator<'a>: Send + Sync {
// Required method
fn calc(&self, tr: &'a Transducer) -> Drive;
}Available on crate feature
gain only.Expand description
A trait to calculate the phase and intensity for each Transducer.
Required Methods§
Sourcefn calc(&self, tr: &'a Transducer) -> Drive
fn calc(&self, tr: &'a Transducer) -> Drive
Calculates the phase and intensity for the given Transducer.
Trait Implementations§
Source§impl<'a> GainCalculator<'a> for Box<dyn GainCalculator<'a>>
impl<'a> GainCalculator<'a> for Box<dyn GainCalculator<'a>>
Source§fn calc(&self, tr: &'a Transducer) -> Drive
fn calc(&self, tr: &'a Transducer) -> Drive
Calculates the phase and intensity for the given
Transducer.