pub struct ExternalReferenceRelationship<'m> { /* private fields */ }Expand description
Borrowed projection of an IFCEXTERNALREFERENCERELATIONSHIP entity.
Projections handed out by a crate::ClassificationView read against
the release the model declares (IFC2X3, IFC4 or IFC4X3); one built with
try_new has no model and reads against IFC4, as in 0.2.0.
Implementations§
Source§impl<'m> ExternalReferenceRelationship<'m>
impl<'m> ExternalReferenceRelationship<'m>
Sourcepub fn try_new(id: EntityId, entity: &'m Entity) -> ClassificationResult<Self>
pub fn try_new(id: EntityId, entity: &'m Entity) -> ClassificationResult<Self>
Project entity as IFCEXTERNALREFERENCERELATIONSHIP, checking its runtime type; fails with WrongEntityType if it is not.
Without a model there is no header to bind, so the projection reads against IFC4. Use the view’s lookups to read another release.
Source§impl<'m> ExternalReferenceRelationship<'m>
impl<'m> ExternalReferenceRelationship<'m>
Sourcepub fn name(self) -> ClassificationResult<Option<&'m str>>
pub fn name(self) -> ClassificationResult<Option<&'m str>>
Optional relationship name.
Sourcepub fn description(self) -> ClassificationResult<Option<&'m str>>
pub fn description(self) -> ClassificationResult<Option<&'m str>>
Optional relationship description.
Sourcepub fn relating_reference(self) -> ClassificationResult<EntityId>
pub fn relating_reference(self) -> ClassificationResult<EntityId>
External reference that applies to the related resources.
Resource-level objects carrying this external reference.
Trait Implementations§
Source§impl<'m> Clone for ExternalReferenceRelationship<'m>
impl<'m> Clone for ExternalReferenceRelationship<'m>
impl<'m> Copy for ExternalReferenceRelationship<'m>
Auto Trait Implementations§
impl<'m> Freeze for ExternalReferenceRelationship<'m>
impl<'m> RefUnwindSafe for ExternalReferenceRelationship<'m>
impl<'m> Send for ExternalReferenceRelationship<'m>
impl<'m> Sync for ExternalReferenceRelationship<'m>
impl<'m> Unpin for ExternalReferenceRelationship<'m>
impl<'m> UnsafeUnpin for ExternalReferenceRelationship<'m>
impl<'m> UnwindSafe for ExternalReferenceRelationship<'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