Struct CongruenceTolerance
pub struct CongruenceTolerance { /* private fields */ }Expand description
A non-negative tolerance for congruence-style comparisons.
Implementations§
§impl CongruenceTolerance
impl CongruenceTolerance
pub const fn new(value: f64) -> Option<CongruenceTolerance>
pub const fn new(value: f64) -> Option<CongruenceTolerance>
Creates a finite, non-negative tolerance.
pub fn matches_lengths(self, left: f64, right: f64) -> bool
pub fn matches_lengths(self, left: f64, right: f64) -> bool
Returns true when two lengths match within this tolerance.
Trait Implementations§
§impl Clone for CongruenceTolerance
impl Clone for CongruenceTolerance
§fn clone(&self) -> CongruenceTolerance
fn clone(&self) -> CongruenceTolerance
Returns a duplicate 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 more§impl Debug for CongruenceTolerance
impl Debug for CongruenceTolerance
§impl PartialEq for CongruenceTolerance
impl PartialEq for CongruenceTolerance
impl Copy for CongruenceTolerance
impl StructuralPartialEq for CongruenceTolerance
Auto Trait Implementations§
impl Freeze for CongruenceTolerance
impl RefUnwindSafe for CongruenceTolerance
impl Send for CongruenceTolerance
impl Sync for CongruenceTolerance
impl Unpin for CongruenceTolerance
impl UnsafeUnpin for CongruenceTolerance
impl UnwindSafe for CongruenceTolerance
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