pub struct DocumentReference<'m> { /* private fields */ }Expand description
Borrowed projection of an IFCDOCUMENTREFERENCE entity.
Implementations§
Source§impl<'m> DocumentReference<'m>
impl<'m> DocumentReference<'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 IFCDOCUMENTREFERENCE, checking its runtime type; fails with WrongEntityType if it is not.
Source§impl<'m> DocumentReference<'m>
impl<'m> DocumentReference<'m>
Sourcepub fn location(self) -> ClassificationResult<Option<&'m str>>
pub fn location(self) -> ClassificationResult<Option<&'m str>>
The Location (e.g. a URI) of the referenced document, when authored.
Sourcepub fn identification(self) -> ClassificationResult<Option<&'m str>>
pub fn identification(self) -> ClassificationResult<Option<&'m str>>
The Identification code of the referenced document, when authored.
Sourcepub fn name(self) -> ClassificationResult<Option<&'m str>>
pub fn name(self) -> ClassificationResult<Option<&'m str>>
The Name of the referenced document; mutually exclusive with referenced_document_id.
Sourcepub fn description(self) -> ClassificationResult<Option<&'m str>>
pub fn description(self) -> ClassificationResult<Option<&'m str>>
The Description of the referenced document, when authored.
Sourcepub fn referenced_document_id(self) -> ClassificationResult<Option<EntityId>>
pub fn referenced_document_id(self) -> ClassificationResult<Option<EntityId>>
Id of the ReferencedDocument (an IfcDocumentInformation); mutually exclusive with name.
Sourcepub fn validate(self) -> ClassificationResult<()>
pub fn validate(self) -> ClassificationResult<()>
Checks IfcExternalReference.WR1 (at least one of Location, Identification, Name stated) and the local WR1 rule that exactly one of Name and ReferencedDocument is stated.
Trait Implementations§
Source§impl<'m> Clone for DocumentReference<'m>
impl<'m> Clone for DocumentReference<'m>
impl<'m> Copy for DocumentReference<'m>
Auto Trait Implementations§
impl<'m> Freeze for DocumentReference<'m>
impl<'m> RefUnwindSafe for DocumentReference<'m>
impl<'m> Send for DocumentReference<'m>
impl<'m> Sync for DocumentReference<'m>
impl<'m> Unpin for DocumentReference<'m>
impl<'m> UnsafeUnpin for DocumentReference<'m>
impl<'m> UnwindSafe for DocumentReference<'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