pub struct Representation<'m> { /* private fields */ }Expand description
One IfcRepresentation: a named set of items in a context.
Implementations§
Source§impl<'m> Representation<'m>
impl<'m> Representation<'m>
Sourcepub fn new(id: EntityId, entity: &'m Entity) -> Self
pub fn new(id: EntityId, entity: &'m Entity) -> Self
Wrap an entity assumed to be an IfcRepresentation subtype.
Sourcepub fn identifier(&self) -> Option<String>
pub fn identifier(&self) -> Option<String>
Body, Axis, FootPrint; absent when the author omitted it.
Sourcepub fn representation_type(&self) -> Option<String>
pub fn representation_type(&self) -> Option<String>
Plan, Curve2D, SweptSolid, Brep; absent when the author omitted it.
Sourcepub fn context(&self) -> Option<EntityId>
pub fn context(&self) -> Option<EntityId>
The IfcRepresentationContext this representation is authored into.
Sourcepub fn items(&self) -> GeometryResult<Vec<EntityId>>
pub fn items(&self) -> GeometryResult<Vec<EntityId>>
The representation items to lower.
Trait Implementations§
Source§impl<'m> Clone for Representation<'m>
impl<'m> Clone for Representation<'m>
impl<'m> Copy for Representation<'m>
Auto Trait Implementations§
impl<'m> Freeze for Representation<'m>
impl<'m> RefUnwindSafe for Representation<'m>
impl<'m> Send for Representation<'m>
impl<'m> Sync for Representation<'m>
impl<'m> Unpin for Representation<'m>
impl<'m> UnsafeUnpin for Representation<'m>
impl<'m> UnwindSafe for Representation<'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