pub trait GKIntegrable:
GLKIntegrable
+ Sub<Self, Output = Self>
+ Sized
+ Clone {
// Required methods
fn is_finite(&self) -> bool;
fn gk_norm(&self) -> f64;
// Provided method
fn is_within_tol(&self, tol: f64) -> bool { ... }
}Expand description
Type that can be integrated using Gauss Kronrod Quadrature
Required Methods§
Provided Methods§
Sourcefn is_within_tol(&self, tol: f64) -> bool
fn is_within_tol(&self, tol: f64) -> bool
Returns true if this object is less than the tolerance passed as
the tol argument. By default, returns true if its gk_norm
is less than tol.
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.