#[non_exhaustive]pub enum HorizontalSegmentType {
Line,
CircularArc,
Transition(String),
UserDefined,
NotDefined,
}Expand description
IFC4x3 horizontal segment kind, preserving the declaration rather than guessing.
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
LINE: a straight tangent segment (zero curvature throughout).
CircularArc
CIRCULARARC: constant-radius arc; StartRadiusOfCurvature and
EndRadiusOfCurvature are equal.
Transition(String)
A transition-spiral PredefinedType token (e.g. CLOTHOID,
CUBIC, BLOSS), preserved verbatim – which spiral laws this crate
can lower exactly is decided downstream, not by this type.
UserDefined
USERDEFINED: an author-supplied law outside the enumerated set.
NotDefined
NOTDEFINED: no horizontal segment kind was declared.
Implementations§
Source§impl HorizontalSegmentType
impl HorizontalSegmentType
Sourcepub fn source_name(&self) -> &str
pub fn source_name(&self) -> &str
The PredefinedType enumeration token this variant was read from.
Trait Implementations§
Source§impl Clone for HorizontalSegmentType
impl Clone for HorizontalSegmentType
Source§impl Debug for HorizontalSegmentType
impl Debug for HorizontalSegmentType
impl Eq for HorizontalSegmentType
Source§impl PartialEq for HorizontalSegmentType
impl PartialEq for HorizontalSegmentType
impl StructuralPartialEq for HorizontalSegmentType
Auto Trait Implementations§
impl Freeze for HorizontalSegmentType
impl RefUnwindSafe for HorizontalSegmentType
impl Send for HorizontalSegmentType
impl Sync for HorizontalSegmentType
impl Unpin for HorizontalSegmentType
impl UnsafeUnpin for HorizontalSegmentType
impl UnwindSafe for HorizontalSegmentType
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