Enum spade::InsertionError
source · pub enum InsertionError {
TooSmall,
TooLarge,
NAN,
}
Expand description
The error type used for inserting elements into a triangulation.
Errors during insertion can only originate from an invalid vertex position. Vertices can be checked for validity by using crate::validate_vertex.
Variants§
TooSmall
A coordinate value was too small.
The absolute value of any inserted vertex coordinate must either be zero or greater greater than or equal to crate::MIN_ALLOWED_VALUE.
TooLarge
A coordinate value was too large.
The absolute value of any inserted vertex coordinate must be less than or equal to crate::MAX_ALLOWED_VALUE.
NAN
A coordinate value was NaN.
Trait Implementations§
source§impl Clone for InsertionError
impl Clone for InsertionError
source§fn clone(&self) -> InsertionError
fn clone(&self) -> InsertionError
Returns a copy 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 InsertionError
impl Debug for InsertionError
source§impl Display for InsertionError
impl Display for InsertionError
source§impl Error for InsertionError
impl Error for InsertionError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Hash for InsertionError
impl Hash for InsertionError
source§impl Ord for InsertionError
impl Ord for InsertionError
source§fn cmp(&self, other: &InsertionError) -> Ordering
fn cmp(&self, other: &InsertionError) -> 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 InsertionError
impl PartialEq for InsertionError
source§fn eq(&self, other: &InsertionError) -> bool
fn eq(&self, other: &InsertionError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InsertionError
impl PartialOrd for InsertionError
source§fn partial_cmp(&self, other: &InsertionError) -> Option<Ordering>
fn partial_cmp(&self, other: &InsertionError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for InsertionError
impl Eq for InsertionError
impl StructuralEq for InsertionError
impl StructuralPartialEq for InsertionError
Auto Trait Implementations§
impl RefUnwindSafe for InsertionError
impl Send for InsertionError
impl Sync for InsertionError
impl Unpin for InsertionError
impl UnwindSafe for InsertionError
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