Trait Strategy2D

Source
pub trait Strategy2D<D>: Debug + DynClone
where D: Data + RawDataClone + Clone, D::Elem: Num + PartialOrd + Copy + Debug,
{ // Required methods fn interpolate( &self, data: &InterpData2D<D>, point: &[D::Elem; 2], ) -> Result<D::Elem, InterpolateError>; fn allow_extrapolate(&self) -> bool; }

Required Methods§

Source

fn interpolate( &self, data: &InterpData2D<D>, point: &[D::Elem; 2], ) -> Result<D::Elem, InterpolateError>

Source

fn allow_extrapolate(&self) -> bool

Does this type’s Strategy2D::interpolate provision for extrapolation?

Trait Implementations§

Source§

impl<D> Strategy2D<D> for Box<dyn Strategy2D<D>>
where D: Data + RawDataClone + Clone, D::Elem: Num + PartialOrd + Copy + Debug,

Source§

fn interpolate( &self, data: &InterpData2D<D>, point: &[D::Elem; 2], ) -> Result<D::Elem, InterpolateError>

Source§

fn allow_extrapolate(&self) -> bool

Does this type’s Strategy2D::interpolate provision for extrapolation?

Implementations on Foreign Types§

Source§

impl<D> Strategy2D<D> for Box<dyn Strategy2D<D>>
where D: Data + RawDataClone + Clone, D::Elem: Num + PartialOrd + Copy + Debug,

Source§

fn interpolate( &self, data: &InterpData2D<D>, point: &[D::Elem; 2], ) -> Result<D::Elem, InterpolateError>

Source§

fn allow_extrapolate(&self) -> bool

Implementors§

Source§

impl<D> Strategy2D<D> for Linear
where D: Data + RawDataClone + Clone, D::Elem: Num + PartialOrd + Copy + Debug,

Source§

impl<D> Strategy2D<D> for Nearest
where D: Data + RawDataClone + Clone, D::Elem: Num + PartialOrd + Copy + Debug,