pub struct Tolerance { /* private fields */ }Expand description
Finite, non-negative tolerance used by numerical predicates and factorizations.
Construct with Tolerance::new when accepting raw caller input. Once
constructed, the stored value is guaranteed to be finite and >= 0, so
downstream algorithms do not need to revalidate the tolerance.
This is the crate-wide tolerance contract: raw negative, NaN, and infinite
values are rejected with LaError::InvalidTolerance at construction time.
Implementations§
Source§impl Tolerance
impl Tolerance
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