pub enum KnotRefinementRefusal {
NonFinite {
direction: KnotDirection,
},
OutsideDomain {
direction: KnotDirection,
parameter: f64,
start: f64,
end: f64,
},
MultiplicityExceeded {
direction: KnotDirection,
parameter: f64,
existing: usize,
requested: usize,
limit: usize,
},
InvalidSurface(String),
}Expand description
Why a knot refinement was refused. The surface is never changed in part.
Variants§
NonFinite
The parameter is NaN or infinite.
Fields
§
direction: KnotDirectionOutsideDomain
The parameter lies outside the closed domain [start, end].
MultiplicityExceeded
The knot would occur more than degree times in the interior (the
surface would come apart there), or more than degree + 1 at an end.
InvalidSurface(String)
The input surface itself is invalid.
Trait Implementations§
Source§impl Clone for KnotRefinementRefusal
impl Clone for KnotRefinementRefusal
Source§impl Debug for KnotRefinementRefusal
impl Debug for KnotRefinementRefusal
Source§impl Display for KnotRefinementRefusal
impl Display for KnotRefinementRefusal
Source§impl Error for KnotRefinementRefusal
impl Error for KnotRefinementRefusal
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 PartialEq for KnotRefinementRefusal
impl PartialEq for KnotRefinementRefusal
impl StructuralPartialEq for KnotRefinementRefusal
Auto Trait Implementations§
impl Forget for KnotRefinementRefusal
impl Freeze for KnotRefinementRefusal
impl Move for KnotRefinementRefusal
impl RefUnwindSafe for KnotRefinementRefusal
impl Send for KnotRefinementRefusal
impl Sync for KnotRefinementRefusal
impl Unpin for KnotRefinementRefusal
impl UnsafeUnpin for KnotRefinementRefusal
impl UnwindSafe for KnotRefinementRefusal
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