pub struct ContactTolerance { /* private fields */ }Expand description
Tolerances describing what counts as touching.
These are measurement inputs, not thresholds: they define contact, rather than judging whether enough of it exists.
Implementations§
Source§impl ContactTolerance
impl ContactTolerance
pub fn try_new( maximum_gap_metres: f64, maximum_intersection_metres: f64, minimum_polygon_area_square_metres: f64, ) -> Result<Self, ContactError>
pub fn maximum_gap_metres(&self) -> f64
pub fn maximum_intersection_metres(&self) -> f64
pub fn minimum_polygon_area_square_metres(&self) -> f64
Trait Implementations§
Source§impl Clone for ContactTolerance
impl Clone for ContactTolerance
Source§fn clone(&self) -> ContactTolerance
fn clone(&self) -> ContactTolerance
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 ContactTolerance
Source§impl Debug for ContactTolerance
impl Debug for ContactTolerance
Source§impl PartialEq for ContactTolerance
impl PartialEq for ContactTolerance
impl StructuralPartialEq for ContactTolerance
Auto Trait Implementations§
impl Freeze for ContactTolerance
impl RefUnwindSafe for ContactTolerance
impl Send for ContactTolerance
impl Sync for ContactTolerance
impl Unpin for ContactTolerance
impl UnsafeUnpin for ContactTolerance
impl UnwindSafe for ContactTolerance
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