pub trait PolynomialSpline {
// Required method
fn get_ranged_polynomials(&self) -> &Vec<(Range<f64>, Polynomial)>;
// Provided methods
fn polynomial_at<T: Into<f64> + Copy>(&self, x: T) -> &Polynomial { ... }
fn number_of_polynomials(&self) -> usize { ... }
}
Required Methods§
fn get_ranged_polynomials(&self) -> &Vec<(Range<f64>, Polynomial)>
Provided Methods§
fn polynomial_at<T: Into<f64> + Copy>(&self, x: T) -> &Polynomial
fn number_of_polynomials(&self) -> usize
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.