pub trait NumericalIntegrator {
// Required method
fn integrate<F>(
&self,
f: F,
a: f64,
b: f64,
config: &IntegrationConfig,
) -> Result<IntegrationResult, MathError>
where F: Fn(f64) -> f64;
}Expand description
Trait for numerical integrators
Required Methods§
Sourcefn integrate<F>(
&self,
f: F,
a: f64,
b: f64,
config: &IntegrationConfig,
) -> Result<IntegrationResult, MathError>
fn integrate<F>( &self, f: F, a: f64, b: f64, config: &IntegrationConfig, ) -> Result<IntegrationResult, MathError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.