pub enum SplineError {
Shape(ShapeError),
TooFewKnots,
NotEnoughPoints,
}Variants§
Implementations§
Source§impl SplineError
impl SplineError
Sourcepub const fn is_shape(&self) -> bool
pub const fn is_shape(&self) -> bool
Returns true if the enum is SplineError::Shape otherwise false
Sourcepub const fn is_too_few_knots(&self) -> bool
pub const fn is_too_few_knots(&self) -> bool
Returns true if the enum is SplineError::TooFewKnots otherwise false
Sourcepub const fn is_not_enough_points(&self) -> bool
pub const fn is_not_enough_points(&self) -> bool
Returns true if the enum is SplineError::NotEnoughPoints otherwise false
Source§impl SplineError
impl SplineError
pub fn not_enough_knots(exp: usize, res: usize) -> Self
pub fn shape_error(err: ShapeError) -> Self
Trait Implementations§
Source§impl AsRef<str> for SplineError
impl AsRef<str> for SplineError
Source§impl Clone for SplineError
impl Clone for SplineError
Source§fn clone(&self) -> SplineError
fn clone(&self) -> SplineError
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 SplineError
impl Debug for SplineError
Source§impl<'de> Deserialize<'de> for SplineError
impl<'de> Deserialize<'de> for SplineError
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
Source§impl Display for SplineError
impl Display for SplineError
Source§impl Error for SplineError
impl Error for SplineError
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<ShapeError> for SplineError
impl From<ShapeError> for SplineError
Source§fn from(err: ShapeError) -> Self
fn from(err: ShapeError) -> Self
Converts to this type from the input type.
Source§impl Hash for SplineError
impl Hash for SplineError
Source§impl Ord for SplineError
impl Ord for SplineError
Source§fn cmp(&self, other: &SplineError) -> Ordering
fn cmp(&self, other: &SplineError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SplineError
impl PartialEq for SplineError
Source§impl PartialOrd for SplineError
impl PartialOrd for SplineError
Source§impl Serialize for SplineError
impl Serialize for SplineError
Source§impl VariantNames for SplineError
impl VariantNames for SplineError
impl Copy for SplineError
impl Eq for SplineError
impl StructuralPartialEq for SplineError
Auto Trait Implementations§
impl Freeze for SplineError
impl RefUnwindSafe for SplineError
impl Send for SplineError
impl Sync for SplineError
impl Unpin for SplineError
impl UnwindSafe for SplineError
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