pub enum Extrapolate {
Enable,
Clamp,
Error,
}Expand description
Extrapolation strategy
Controls what happens if supplied interpolant point is outside the bounds of the interpolation grid.
Variants§
Enable
If interpolant point is beyond the limits of the interpolation grid,
find result via extrapolation using slope of nearby points.
Currently only implemented for 1-D linear interpolation.
Clamp
Restrict interpolant point to the limits of the interpolation grid, using f64::clamp.
Error
Return an error when interpolant point is beyond the limits of the interpolation grid.
Trait Implementations§
Source§impl Clone for Extrapolate
impl Clone for Extrapolate
Source§fn clone(&self) -> Extrapolate
fn clone(&self) -> Extrapolate
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Extrapolate
impl Debug for Extrapolate
Source§impl Default for Extrapolate
impl Default for Extrapolate
Source§fn default() -> Extrapolate
fn default() -> Extrapolate
Returns the “default value” for a type. Read more
Source§impl PartialEq for Extrapolate
impl PartialEq for Extrapolate
impl StructuralPartialEq for Extrapolate
Auto Trait Implementations§
impl Freeze for Extrapolate
impl RefUnwindSafe for Extrapolate
impl Send for Extrapolate
impl Sync for Extrapolate
impl Unpin for Extrapolate
impl UnwindSafe for Extrapolate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more