pub trait Interp1DStrategy<Sd, Sx, D>{
// Required method
fn interp_into(
&self,
interpolator: &Interp1D<Sd, Sx, D, Self>,
target: ArrayViewMut<'_, Sd::Elem, D::Smaller>,
x: Sx::Elem,
) -> Result<(), InterpolateError>;
}
Required Methods§
Sourcefn interp_into(
&self,
interpolator: &Interp1D<Sd, Sx, D, Self>,
target: ArrayViewMut<'_, Sd::Elem, D::Smaller>,
x: Sx::Elem,
) -> Result<(), InterpolateError>
fn interp_into( &self, interpolator: &Interp1D<Sd, Sx, D, Self>, target: ArrayViewMut<'_, Sd::Elem, D::Smaller>, x: Sx::Elem, ) -> Result<(), InterpolateError>
Interpolate the at position x into the target array.
This is used internally by Interp1D
.
When called by Interp1D
the following
properties are guaranteed:
- The shape of the target array matches the shape of the data array (provided to the builder) with the first axis removed.
- x can be any valid
Sx::Elem
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.