pub enum Tolerance {
Float32,
Float64,
Absolute(f64),
RelativeToStep(f64),
}Expand description
How far stored coordinates may sit from the fitted mapping.
Variants§
Float32
One unit in the last place of f32 at the largest magnitude in the
coordinates: what rounding to 32-bit storage can produce.
Float64
As Float32, for f64, scaled by 16 for accumulated arithmetic.
Absolute(f64)
An absolute distance in the frame’s units.
RelativeToStep(f64)
A fraction of one step (cell size).
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