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: Self
pub const ZERO: Self
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: Self
pub const METRE: Self
One micrometre linear and one nanoradian angular tolerance when geometry has already been normalized to metres.
Sourcepub const MILLIMETRE: Self
pub const MILLIMETRE: Self
One micrometre linear and one nanoradian angular tolerance while values are still expressed in millimetres.
Sourcepub fn new(linear: Scalar, angular: Scalar) -> Result<Self, ToleranceError>
pub fn new(linear: Scalar, angular: Scalar) -> Result<Self, 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 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