pub enum PreferredSurfaceCurveRepresentation {
Curve3D,
PCurveS1,
PCurveS2,
}Expand description
IfcPreferredSurfaceCurveRepresentation: which copy of the curve wins.
Variants§
Curve3D
Believe Curve3D, the model-space curve.
PCurveS1
Believe the first IfcPcurve in AssociatedGeometry.
PCurveS2
Believe the second IfcPcurve in AssociatedGeometry.
Only meaningful when two are supplied; a file naming this with one p-curve is inconsistent.
Implementations§
Source§impl PreferredSurfaceCurveRepresentation
impl PreferredSurfaceCurveRepresentation
Sourcepub fn from_token(token: &str) -> Option<Self>
pub fn from_token(token: &str) -> Option<Self>
Parse the enumeration token, None if unrecognised.
Sourcepub fn pcurve_index(&self) -> Option<usize>
pub fn pcurve_index(&self) -> Option<usize>
Index into AssociatedGeometry, or None when 3D wins.
Saves every caller from re-deriving that PCURVE_S1 is element 0.
Trait Implementations§
Source§impl Clone for PreferredSurfaceCurveRepresentation
impl Clone for PreferredSurfaceCurveRepresentation
Source§fn clone(&self) -> PreferredSurfaceCurveRepresentation
fn clone(&self) -> PreferredSurfaceCurveRepresentation
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 PreferredSurfaceCurveRepresentation
impl Eq for PreferredSurfaceCurveRepresentation
impl StructuralPartialEq for PreferredSurfaceCurveRepresentation
Auto Trait Implementations§
impl Freeze for PreferredSurfaceCurveRepresentation
impl RefUnwindSafe for PreferredSurfaceCurveRepresentation
impl Send for PreferredSurfaceCurveRepresentation
impl Sync for PreferredSurfaceCurveRepresentation
impl Unpin for PreferredSurfaceCurveRepresentation
impl UnsafeUnpin for PreferredSurfaceCurveRepresentation
impl UnwindSafe for PreferredSurfaceCurveRepresentation
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