pub enum CutterError {
NonFinite {
field: &'static str,
},
NotPositive {
field: &'static str,
},
CornerRadiusOutOfRange {
corner_radius: f64,
radius: f64,
},
IncludedAngleOutOfRange {
included_angle_deg: f64,
},
BallLargerThanMaximum {
ball_diameter: f64,
maximum_diameter: f64,
},
UnsupportedToolKind {
kind: ToolKind,
},
MissingField {
kind: ToolKind,
field: &'static str,
},
JoinGap {
radius: f64,
gap: f64,
},
JoinNotTangent {
radius: f64,
sine: f64,
},
TipNotSmallerThanDiameter {
tip_diameter: f64,
diameter: f64,
},
NeckNotSmallerThanDiameter {
neck_diameter: f64,
diameter: f64,
},
}Expand description
Why a cutter was refused. User-facing through Display.
Variants§
NonFinite
NotPositive
CornerRadiusOutOfRange
Bull: 0 < corner_radius < radius violated.
IncludedAngleOutOfRange
Cone / ball-cone: 0 < included_angle < 180 violated.
BallLargerThanMaximum
Ball-cone: ball_diameter <= maximum_diameter violated.
UnsupportedToolKind
The tool kind has no cutter profile (drills, taps, lathe inserts, …).
MissingField
A field the tool kind requires is missing.
JoinGap
Two consecutive profile segments do not meet in height at radius.
JoinNotTangent
Two consecutive curved segments meet with a corner at radius.
TipNotSmallerThanDiameter
Frustum: the tip must be narrower than the tool.
NeckNotSmallerThanDiameter
Lollipop / dovetail: the neck must be narrower than the tool.
Trait Implementations§
Source§impl Clone for CutterError
impl Clone for CutterError
Source§impl Debug for CutterError
impl Debug for CutterError
Source§impl Display for CutterError
impl Display for CutterError
Source§impl Error for CutterError
impl Error for CutterError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CutterError> for CamError
impl From<CutterError> for CamError
Source§fn from(e: CutterError) -> Self
fn from(e: CutterError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CutterError
impl PartialEq for CutterError
impl StructuralPartialEq for CutterError
Auto Trait Implementations§
impl Forget for CutterError
impl Freeze for CutterError
impl Move for CutterError
impl RefUnwindSafe for CutterError
impl Send for CutterError
impl Sync for CutterError
impl Unpin for CutterError
impl UnsafeUnpin for CutterError
impl UnwindSafe for CutterError
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