pub enum BSplineError {
TooFewElements(TooFewElements),
TooFewKnots(TooFewKnots),
TooSmallWorkspace(TooSmallWorkspace),
InvalidDegree(InvalidDegree),
NotSorted(NotSorted),
IncongruousElementsKnots(IncongruousElementsKnots),
IncongruousElementsDegree(IncongruousElementsDegree),
}
Expand description
Errors which could occur when using or creating a linear interpolation.
Variants§
TooFewElements(TooFewElements)
Error returned if there are too few elements.
TooFewKnots(TooFewKnots)
Error returned if there are too few knots.
TooSmallWorkspace(TooSmallWorkspace)
Error returned if the workspace is not big enough.
InvalidDegree(InvalidDegree)
Error returned when the degree is 0 or smaller.
NotSorted(NotSorted)
Error returned if knots are not sorted.
IncongruousElementsKnots(IncongruousElementsKnots)
Error returned when elements and knots are not matching together.
IncongruousElementsDegree(IncongruousElementsDegree)
Error returned when elements and degree are ill-matched.
Trait Implementations§
Source§impl Clone for BSplineError
impl Clone for BSplineError
Source§fn clone(&self) -> BSplineError
fn clone(&self) -> BSplineError
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 BSplineError
impl Debug for BSplineError
Source§impl Display for BSplineError
impl Display for BSplineError
Source§impl Error for BSplineError
impl Error for BSplineError
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<IncongruousElementsDegree> for BSplineError
impl From<IncongruousElementsDegree> for BSplineError
Source§fn from(from: IncongruousElementsDegree) -> Self
fn from(from: IncongruousElementsDegree) -> Self
Converts to this type from the input type.
Source§impl From<IncongruousElementsKnots> for BSplineError
impl From<IncongruousElementsKnots> for BSplineError
Source§fn from(from: IncongruousElementsKnots) -> Self
fn from(from: IncongruousElementsKnots) -> Self
Converts to this type from the input type.
Source§impl From<InvalidDegree> for BSplineError
impl From<InvalidDegree> for BSplineError
Source§fn from(from: InvalidDegree) -> Self
fn from(from: InvalidDegree) -> Self
Converts to this type from the input type.
Source§impl From<NotSorted> for BSplineError
impl From<NotSorted> for BSplineError
Source§impl From<TooFewElements> for BSplineError
impl From<TooFewElements> for BSplineError
Source§fn from(from: TooFewElements) -> Self
fn from(from: TooFewElements) -> Self
Converts to this type from the input type.
Source§impl From<TooSmallWorkspace> for BSplineError
impl From<TooSmallWorkspace> for BSplineError
Source§fn from(from: TooSmallWorkspace) -> Self
fn from(from: TooSmallWorkspace) -> Self
Converts to this type from the input type.
impl Copy for BSplineError
Auto Trait Implementations§
impl Freeze for BSplineError
impl RefUnwindSafe for BSplineError
impl Send for BSplineError
impl Sync for BSplineError
impl Unpin for BSplineError
impl UnwindSafe for BSplineError
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