pub enum LinearError {
TooFewElements(TooFewElements),
KnotElementInequality(KnotElementInequality),
NotSorted(NotSorted),
}
Expand description
Errors which could occur when using or creating a linear interpolation.
Variants§
TooFewElements(TooFewElements)
Error returned if the elements are to few for a linear interpolation.
KnotElementInequality(KnotElementInequality)
Error returned if the number of knots and elements are not equal.
NotSorted(NotSorted)
Error returned if knots are not sorted.
Trait Implementations§
Source§impl Clone for LinearError
impl Clone for LinearError
Source§fn clone(&self) -> LinearError
fn clone(&self) -> LinearError
Returns a duplicate 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 LinearError
impl Debug for LinearError
Source§impl Display for LinearError
impl Display for LinearError
Source§impl Error for LinearError
impl Error for LinearError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<KnotElementInequality> for LinearError
impl From<KnotElementInequality> for LinearError
Source§fn from(from: KnotElementInequality) -> Self
fn from(from: KnotElementInequality) -> Self
Converts to this type from the input type.
Source§impl From<NotSorted> for LinearError
impl From<NotSorted> for LinearError
Source§impl From<TooFewElements> for LinearError
impl From<TooFewElements> for LinearError
Source§fn from(from: TooFewElements) -> Self
fn from(from: TooFewElements) -> Self
Converts to this type from the input type.
impl Copy for LinearError
Auto Trait Implementations§
impl Freeze for LinearError
impl RefUnwindSafe for LinearError
impl Send for LinearError
impl Sync for LinearError
impl Unpin for LinearError
impl UnwindSafe for LinearError
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