pub struct Tolerance {
pub absolute: f64,
pub relative: f64,
}Expand description
Absolute and relative tolerances used by validation and triangle boundaries.
Both values must be finite and strictly positive. Values within the absolute tolerance of zero are treated as floating-point boundary noise where the documented operation permits boundary clean-up.
Fields§
§absolute: f64Absolute tolerance, used near zero.
relative: f64Relative tolerance, scaled by the compared magnitudes.
Implementations§
Trait Implementations§
impl Copy for Tolerance
impl StructuralPartialEq for Tolerance
Auto Trait Implementations§
impl Freeze for Tolerance
impl RefUnwindSafe for Tolerance
impl Send for Tolerance
impl Sync for Tolerance
impl Unpin for Tolerance
impl UnsafeUnpin for Tolerance
impl UnwindSafe for Tolerance
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