pub trait Forward {
// Required methods
fn fly(
&mut self,
parameters: &Parameters,
until_s: f64,
) -> Result<Simulated, String>;
fn fly_sheared(
&mut self,
parameters: &Parameters,
until_s: f64,
exponent: f64,
) -> Result<Simulated, String>;
}Expand description
Flies a flight for a fit.
Required Methods§
Sourcefn fly(
&mut self,
parameters: &Parameters,
until_s: f64,
) -> Result<Simulated, String>
fn fly( &mut self, parameters: &Parameters, until_s: f64, ) -> Result<Simulated, String>
The flight on parameters, flown for until_s seconds at least.
§Errors
Why it can’t fly: the fit steps back from a step that can’t.
Sourcefn fly_sheared(
&mut self,
parameters: &Parameters,
until_s: f64,
exponent: f64,
) -> Result<Simulated, String>
fn fly_sheared( &mut self, parameters: &Parameters, until_s: f64, exponent: f64, ) -> Result<Simulated, String>
As Forward::fly, with the wind’s speed taken where its stated wind is measured and
growing with height above it as the power exponent: V(z) = V_ref (z / z_ref)^α.
§Errors
As Forward::fly.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".