#[non_exhaustive]pub struct ArcCheckOptions {
pub clearance: Option<Scalar>,
}Expand description
Options of check_arc_polygon_with.
The default is the behaviour of check_arc_polygon:
contact is decided exactly, with no clearance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.clearance: Option<Scalar>Report edges that miss each other by less than this distance, or
None (the default) to leave nearness unchecked.
Implementations§
Source§impl ArcCheckOptions
impl ArcCheckOptions
Sourcepub const fn with_clearance(self, distance: Scalar) -> Self
pub const fn with_clearance(self, distance: Scalar) -> Self
These options with a clearance check at distance.
A distance that is not finite or is negative is reported by the check
as ArcPolygonDefect::InvalidClearance,
never replaced; zero finds nothing, since only touching edges are at
distance zero.
Trait Implementations§
Source§impl Clone for ArcCheckOptions
impl Clone for ArcCheckOptions
Source§fn clone(&self) -> ArcCheckOptions
fn clone(&self) -> ArcCheckOptions
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 ArcCheckOptions
Source§impl Debug for ArcCheckOptions
impl Debug for ArcCheckOptions
Source§impl Default for ArcCheckOptions
impl Default for ArcCheckOptions
Source§fn default() -> ArcCheckOptions
fn default() -> ArcCheckOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for ArcCheckOptions
impl PartialEq for ArcCheckOptions
impl StructuralPartialEq for ArcCheckOptions
Auto Trait Implementations§
impl Freeze for ArcCheckOptions
impl RefUnwindSafe for ArcCheckOptions
impl Send for ArcCheckOptions
impl Sync for ArcCheckOptions
impl Unpin for ArcCheckOptions
impl UnsafeUnpin for ArcCheckOptions
impl UnwindSafe for ArcCheckOptions
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