pub struct Tolerance { /* private fields */ }Expand description
Linear and angular tolerance carried with an operation.
There is deliberately no Default implementation: a useful tolerance is
a property of the source unit scale and requested accuracy, not the crate.
Implementations§
Source§impl Tolerance
impl Tolerance
Sourcepub const ZERO: Tolerance
pub const ZERO: Tolerance
Exact-coordinate policy. Use only when the caller intentionally wants no scale-derived tolerance, such as compatibility validation of an existing source model.
Sourcepub const METRE: Tolerance
pub const METRE: Tolerance
One micrometre linear and one nanoradian angular tolerance when geometry has already been normalized to metres.
Sourcepub const MILLIMETRE: Tolerance
pub const MILLIMETRE: Tolerance
One micrometre linear and one nanoradian angular tolerance while values are still expressed in millimetres.
Sourcepub fn new(linear: f64, angular: f64) -> Result<Tolerance, ToleranceError>
pub fn new(linear: f64, angular: f64) -> Result<Tolerance, ToleranceError>
Construct a validated policy.
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