pub enum PolylineFitExit {
Converged,
StationCeiling,
InputExhausted,
Stalled,
Unrefined,
}Expand description
Why a polyline fit’s refinement stopped. Only
PolylineFitExit::Converged means the tolerance was met; every other
variant is a BUDGET exit whose deviation was measured on the curve actually
returned.
Variants§
Converged
A measured rung came in at or under the tolerance.
StationCeiling
MAX_FIT_STATIONS bound with the tolerance unmet and the input still
holding stations the ladder never used.
InputExhausted
Every station the input offers is an interpolation station and the tolerance is still unmet. More points cannot help; a different lane, a finer march or a looser bar can.
Stalled
A doubling failed to improve the deviation by STALL_FACTOR, so the
input rather than the station count is what binds. The better of the two
curves is returned.
Unrefined
No refinement was attempted: fit_polyline_at fits exactly one rung,
and BREP_POLYLINE_FIT_REFINE=0 makes fit_polyline do the same.
Trait Implementations§
Source§impl Clone for PolylineFitExit
impl Clone for PolylineFitExit
impl Copy for PolylineFitExit
Source§impl Debug for PolylineFitExit
impl Debug for PolylineFitExit
impl Eq for PolylineFitExit
Source§impl Hash for PolylineFitExit
impl Hash for PolylineFitExit
Source§impl PartialEq for PolylineFitExit
impl PartialEq for PolylineFitExit
impl StructuralPartialEq for PolylineFitExit
Auto Trait Implementations§
impl Forget for PolylineFitExit
impl Freeze for PolylineFitExit
impl Move for PolylineFitExit
impl RefUnwindSafe for PolylineFitExit
impl Send for PolylineFitExit
impl Sync for PolylineFitExit
impl Unpin for PolylineFitExit
impl UnsafeUnpin for PolylineFitExit
impl UnwindSafe for PolylineFitExit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.