pub struct MaterialProfileSetUsageGeometry<'m> { /* private fields */ }Expand description
Geometry-only projection of IfcMaterialProfileSetUsage, including its
subtype IfcMaterialProfileSetUsageTapering (#136).
Implementations§
Source§impl<'m> MaterialProfileSetUsageGeometry<'m>
impl<'m> MaterialProfileSetUsageGeometry<'m>
Sourcepub fn new(id: EntityId, entity: &'m Entity) -> GeometryResult<Self>
pub fn new(id: EntityId, entity: &'m Entity) -> GeometryResult<Self>
Borrows entity, checking it is an IfcMaterialProfileSetUsage or
its subtype IfcMaterialProfileSetUsageTapering.
The subtype keeps ForProfileSet, CardinalPoint and
ReferenceExtent at slots 0..2 in IFC4 and IFC4X3, so every accessor
here reads it unchanged; Self::tapering reaches its end profile
set and end cardinal point.
Sourcepub fn tapering(self) -> Option<MaterialProfileSetUsageTaperingGeometry<'m>>
pub fn tapering(self) -> Option<MaterialProfileSetUsageTaperingGeometry<'m>>
The tapering projection when the record is an
IfcMaterialProfileSetUsageTapering; None for a plain usage.
Sourcepub fn profile_set_id(self) -> GeometryResult<EntityId>
pub fn profile_set_id(self) -> GeometryResult<EntityId>
The ForProfileSet reference.
Sourcepub fn cardinal_point(self) -> GeometryResult<Option<CardinalPoint>>
pub fn cardinal_point(self) -> GeometryResult<Option<CardinalPoint>>
The CardinalPoint, when authored.
Sourcepub fn reference_extent(self) -> GeometryResult<Option<f64>>
pub fn reference_extent(self) -> GeometryResult<Option<f64>>
The ReferenceExtent, when authored. Must be positive.
Trait Implementations§
Source§impl<'m> Clone for MaterialProfileSetUsageGeometry<'m>
impl<'m> Clone for MaterialProfileSetUsageGeometry<'m>
impl<'m> Copy for MaterialProfileSetUsageGeometry<'m>
Auto Trait Implementations§
impl<'m> Freeze for MaterialProfileSetUsageGeometry<'m>
impl<'m> RefUnwindSafe for MaterialProfileSetUsageGeometry<'m>
impl<'m> Send for MaterialProfileSetUsageGeometry<'m>
impl<'m> Sync for MaterialProfileSetUsageGeometry<'m>
impl<'m> Unpin for MaterialProfileSetUsageGeometry<'m>
impl<'m> UnsafeUnpin for MaterialProfileSetUsageGeometry<'m>
impl<'m> UnwindSafe for MaterialProfileSetUsageGeometry<'m>
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