pub trait GainContext: Send + Sync {
// Required method
fn calc(&self, tr: &Transducer) -> Drive;
}Expand description
A trait to calculate the phase and intensity for Gain.
Required Methods§
Sourcefn calc(&self, tr: &Transducer) -> Drive
fn calc(&self, tr: &Transducer) -> Drive
Calculates the phase and intensity for the transducer.
Trait Implementations§
Source§impl GainContext for Box<dyn GainContext>
impl GainContext for Box<dyn GainContext>
Source§fn calc(&self, tr: &Transducer) -> Drive
fn calc(&self, tr: &Transducer) -> Drive
Calculates the phase and intensity for the transducer.