pub trait Spline<T> {
// Required method
fn eval(&self, t: f64) -> T;
// Provided methods
fn eval_vec(&self, v: &[f64]) -> Vec<T> { ... }
fn eval_with_cond<F: Fn(T) -> T>(&self, t: f64, cond: F) -> T { ... }
fn eval_vec_with_cond<F: Fn(T) -> T + Copy>(
&self,
t: &[f64],
cond: F,
) -> Vec<T> { ... }
}
Required Methods§
Provided Methods§
fn eval_vec(&self, v: &[f64]) -> Vec<T>
fn eval_with_cond<F: Fn(T) -> T>(&self, t: f64, cond: F) -> T
fn eval_vec_with_cond<F: Fn(T) -> T + Copy>(&self, t: &[f64], cond: F) -> Vec<T>
Object Safety§
This trait is not object safe.