#[non_exhaustive]pub enum CurveKind {
Line,
Circle,
Ellipse,
Hyperbola,
Parabola,
Bezier,
BSpline,
Helix,
Trimmed,
Offset,
OnSurface,
Trig,
}Expand description
What kind of curve this is, for analytic fast paths.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Line
A straight line.
Circle
A circle or circular arc.
Ellipse
An ellipse or elliptical arc.
Hyperbola
One branch of a hyperbola.
Parabola
A parabola.
Bezier
A polynomial or rational Bézier.
BSpline
A polynomial or rational B-spline.
Helix
A helix about an axis.
Trimmed
A restriction of another curve to a sub-interval.
Offset
A curve offset from another.
OnSurface
A pcurve composed with the surface it is drawn on.
Trig
An affine-plus-trigonometric chart curve.
Trait Implementations§
impl Copy for CurveKind
impl Eq for CurveKind
impl StructuralPartialEq for CurveKind
Auto Trait Implementations§
impl Freeze for CurveKind
impl RefUnwindSafe for CurveKind
impl Send for CurveKind
impl Sync for CurveKind
impl Unpin for CurveKind
impl UnsafeUnpin for CurveKind
impl UnwindSafe for CurveKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.