pub enum InterpError {
TooFewPoints {
got: usize,
min: usize,
},
UnsortedData,
DimensionMismatch {
x_len: usize,
y_len: usize,
},
InvalidInput(String),
}Expand description
Errors that can occur during interpolation.
Variants§
TooFewPoints
Too few data points for the requested method.
UnsortedData
Data x-coordinates are not strictly increasing.
DimensionMismatch
x and y arrays have different lengths.
InvalidInput(String)
Bad input.
Trait Implementations§
Source§impl Clone for InterpError
impl Clone for InterpError
Source§fn clone(&self) -> InterpError
fn clone(&self) -> InterpError
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 moreSource§impl Debug for InterpError
impl Debug for InterpError
Source§impl Display for InterpError
impl Display for InterpError
Source§impl From<InterpError> for NumraError
impl From<InterpError> for NumraError
Source§fn from(e: InterpError) -> Self
fn from(e: InterpError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InterpError
impl PartialEq for InterpError
Source§fn eq(&self, other: &InterpError) -> bool
fn eq(&self, other: &InterpError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InterpError
Auto Trait Implementations§
impl Freeze for InterpError
impl RefUnwindSafe for InterpError
impl Send for InterpError
impl Sync for InterpError
impl Unpin for InterpError
impl UnsafeUnpin for InterpError
impl UnwindSafe for InterpError
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