pub struct GridPlacement<'m> { /* private fields */ }Expand description
A borrowed view of an IfcGridPlacement, in either release layout.
Implementations§
Source§impl<'m> GridPlacement<'m>
impl<'m> GridPlacement<'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 IfcGridPlacement.
Three attributes is the IFC4X3 ADD2 layout; anything else is read as the IFC2X3/IFC4 one (module documentation).
Sourcepub fn placement_rel_to(&self) -> Option<EntityId>
pub fn placement_rel_to(&self) -> Option<EntityId>
The stated PlacementRelTo: only IFC4X3 declares it on a grid
placement, where it “will reference … the ObjectPlacement of the
IfcGrid”.
Sourcepub fn location(&self) -> GeometryResult<EntityId>
pub fn location(&self) -> GeometryResult<EntityId>
The grid intersection this placement sits at.
Sourcepub fn ref_direction(&self) -> Option<EntityId>
pub fn ref_direction(&self) -> Option<EntityId>
Optional reference direction.
IfcGridPlacementDirectionSelect: either an IfcDirection or a second
IfcVirtualGridIntersection pointing at it. Returned as a raw id
because the caller must dispatch on the target’s type.
Trait Implementations§
Source§impl<'m> Clone for GridPlacement<'m>
impl<'m> Clone for GridPlacement<'m>
Source§fn clone(&self) -> GridPlacement<'m>
fn clone(&self) -> GridPlacement<'m>
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<'m> Copy for GridPlacement<'m>
Auto Trait Implementations§
impl<'m> Freeze for GridPlacement<'m>
impl<'m> RefUnwindSafe for GridPlacement<'m>
impl<'m> Send for GridPlacement<'m>
impl<'m> Sync for GridPlacement<'m>
impl<'m> Unpin for GridPlacement<'m>
impl<'m> UnsafeUnpin for GridPlacement<'m>
impl<'m> UnwindSafe for GridPlacement<'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