#[non_exhaustive]pub enum Extrapolation {
Clamp,
Linear,
Error,
}Expand description
What a lookup outside [x_0, x_{n-1}] does.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Clamp
Hold the end value: y(x) = y_0 below the table and y_{n-1} above it.
Linear
Continue along the slope at the end knot: the end segment’s slope for a linear table,
the spline’s end slope s_0 or s_{n-1} for a cubic one.
Error
Refuse the lookup with CoreError::OutOfRange.
Trait Implementations§
Source§impl Clone for Extrapolation
impl Clone for Extrapolation
Source§fn clone(&self) -> Extrapolation
fn clone(&self) -> Extrapolation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Extrapolation
Source§impl Debug for Extrapolation
impl Debug for Extrapolation
Source§impl Default for Extrapolation
impl Default for Extrapolation
Source§fn default() -> Extrapolation
fn default() -> Extrapolation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Extrapolation
impl<'de> Deserialize<'de> for Extrapolation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Extrapolation
Source§impl Hash for Extrapolation
impl Hash for Extrapolation
Source§impl PartialEq for Extrapolation
impl PartialEq for Extrapolation
Source§fn eq(&self, other: &Extrapolation) -> bool
fn eq(&self, other: &Extrapolation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Extrapolation
impl Serialize for Extrapolation
impl StructuralPartialEq for Extrapolation
Auto Trait Implementations§
impl Freeze for Extrapolation
impl RefUnwindSafe for Extrapolation
impl Send for Extrapolation
impl Sync for Extrapolation
impl Unpin for Extrapolation
impl UnsafeUnpin for Extrapolation
impl UnwindSafe for Extrapolation
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