pub enum ShapeError {
DegreeMismatch,
NotEnoughKnots {
exp: usize,
res: usize,
},
NotEnoughPoints,
}Variants§
Implementations§
Source§impl ShapeError
impl ShapeError
Sourcepub const fn is_degree_mismatch(&self) -> bool
pub const fn is_degree_mismatch(&self) -> bool
Returns true if the enum is ShapeError::DegreeMismatch otherwise false
Sourcepub const fn is_not_enough_knots(&self) -> bool
pub const fn is_not_enough_knots(&self) -> bool
Returns true if the enum is ShapeError::NotEnoughKnots 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 ShapeError::NotEnoughPoints otherwise false
Trait Implementations§
Source§impl AsRef<str> for ShapeError
impl AsRef<str> for ShapeError
Source§impl Clone for ShapeError
impl Clone for ShapeError
Source§fn clone(&self) -> ShapeError
fn clone(&self) -> ShapeError
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 ShapeError
impl Debug for ShapeError
Source§impl<'de> Deserialize<'de> for ShapeError
impl<'de> Deserialize<'de> for ShapeError
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 ShapeError
impl Display for ShapeError
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 ShapeError
impl Hash for ShapeError
Source§impl Ord for ShapeError
impl Ord for ShapeError
Source§fn cmp(&self, other: &ShapeError) -> Ordering
fn cmp(&self, other: &ShapeError) -> 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 ShapeError
impl PartialEq for ShapeError
Source§impl PartialOrd for ShapeError
impl PartialOrd for ShapeError
Source§impl Serialize for ShapeError
impl Serialize for ShapeError
Source§impl VariantNames for ShapeError
impl VariantNames for ShapeError
impl Copy for ShapeError
impl Eq for ShapeError
impl StructuralPartialEq for ShapeError
Auto Trait Implementations§
impl Freeze for ShapeError
impl RefUnwindSafe for ShapeError
impl Send for ShapeError
impl Sync for ShapeError
impl Unpin for ShapeError
impl UnwindSafe for ShapeError
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