pub struct ModelTolerance {
pub abs: f64,
pub rel: f64,
}Expand description
Model comparison tolerance: |a - b| <= max(abs, rel * max(|a|, |b|)).
Fields§
§abs: f64Absolute tolerance in model length units (millimetres).
rel: f64Relative tolerance, applied to the magnitude of the compared values.
Implementations§
Trait Implementations§
Source§impl Clone for ModelTolerance
impl Clone for ModelTolerance
Source§fn clone(&self) -> ModelTolerance
fn clone(&self) -> ModelTolerance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModelTolerance
Source§impl Debug for ModelTolerance
impl Debug for ModelTolerance
Source§impl Default for ModelTolerance
impl Default for ModelTolerance
Source§impl<'de> Deserialize<'de> for ModelTolerance
impl<'de> Deserialize<'de> for ModelTolerance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ModelTolerance
impl PartialEq for ModelTolerance
Source§fn eq(&self, other: &ModelTolerance) -> bool
fn eq(&self, other: &ModelTolerance) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelTolerance
impl Serialize for ModelTolerance
impl StructuralPartialEq for ModelTolerance
Auto Trait Implementations§
impl Freeze for ModelTolerance
impl RefUnwindSafe for ModelTolerance
impl Send for ModelTolerance
impl Sync for ModelTolerance
impl Unpin for ModelTolerance
impl UnsafeUnpin for ModelTolerance
impl UnwindSafe for ModelTolerance
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