pub enum SegmentIndexSelect {
Line(LineIndex),
Arc(ArcIndex),
}Expand description
One entry of IfcIndexedPolyCurve.Segments.
Variants§
Line(LineIndex)
A straight run through two or more points.
Arc(ArcIndex)
A circular arc through exactly three points.
Implementations§
Source§impl SegmentIndexSelect
impl SegmentIndexSelect
Sourcepub fn from_value(entity: EntityId, value: &Value) -> GeometryResult<Self>
pub fn from_value(entity: EntityId, value: &Value) -> GeometryResult<Self>
Parse one IfcSegmentIndexSelect value.
The discriminator is the typed wrapper written by the codec:
IFCLINEINDEX((1,2,3)) versus IFCARCINDEX((3,4,5)). Without the
wrapper the two are indistinguishable lists of integers, so an
untagged value is rejected rather than guessed.
Trait Implementations§
Source§impl Clone for SegmentIndexSelect
impl Clone for SegmentIndexSelect
Source§impl Debug for SegmentIndexSelect
impl Debug for SegmentIndexSelect
impl Eq for SegmentIndexSelect
Source§impl PartialEq for SegmentIndexSelect
impl PartialEq for SegmentIndexSelect
impl StructuralPartialEq for SegmentIndexSelect
Auto Trait Implementations§
impl Freeze for SegmentIndexSelect
impl RefUnwindSafe for SegmentIndexSelect
impl Send for SegmentIndexSelect
impl Sync for SegmentIndexSelect
impl Unpin for SegmentIndexSelect
impl UnsafeUnpin for SegmentIndexSelect
impl UnwindSafe for SegmentIndexSelect
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