pub struct LeadInConfig {
pub lead_in_type: LeadInType,
pub lead_in_length: f64,
pub lead_out_length: f64,
pub lead_in_angle: f64,
pub arc_segments: usize,
}Expand description
Configuration for lead-in/lead-out generation.
Fields§
§lead_in_type: LeadInTypeType of lead-in path.
lead_in_length: f64Lead-in length (distance from start of lead-in to pierce point).
lead_out_length: f64Lead-out length (distance from contour close point to end of lead-out).
lead_in_angle: f64Angle in radians for line lead-in (relative to the contour tangent at pierce). Default: PI/4 (45 degrees).
arc_segments: usizeNumber of arc segments for arc-type lead-in.
Trait Implementations§
Source§impl Clone for LeadInConfig
impl Clone for LeadInConfig
Source§fn clone(&self) -> LeadInConfig
fn clone(&self) -> LeadInConfig
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 LeadInConfig
Source§impl Debug for LeadInConfig
impl Debug for LeadInConfig
Auto Trait Implementations§
impl Freeze for LeadInConfig
impl RefUnwindSafe for LeadInConfig
impl Send for LeadInConfig
impl Sync for LeadInConfig
impl Unpin for LeadInConfig
impl UnsafeUnpin for LeadInConfig
impl UnwindSafe for LeadInConfig
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,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.