#[non_exhaustive]pub struct ArcCheckOptions {
pub clearance: Option<f64>,
}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<f64>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 new() -> ArcCheckOptions
pub const fn new() -> ArcCheckOptions
The default options: no clearance check.
Sourcepub const fn with_clearance(self, distance: f64) -> ArcCheckOptions
pub const fn with_clearance(self, distance: f64) -> ArcCheckOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more