pub struct LibraryReference<'m> { /* private fields */ }Expand description
Borrowed projection of an IFCLIBRARYREFERENCE entity.
Implementations§
Source§impl<'m> LibraryReference<'m>
impl<'m> LibraryReference<'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 IFCLIBRARYREFERENCE, checking its runtime type; fails with WrongEntityType if it is not.
Source§impl<'m> LibraryReference<'m>
impl<'m> LibraryReference<'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 library item, when authored.
Sourcepub fn identification(self) -> ClassificationResult<Option<&'m str>>
pub fn identification(self) -> ClassificationResult<Option<&'m str>>
The Identification code of the referenced library item, when authored.
Sourcepub fn name(self) -> ClassificationResult<Option<&'m str>>
pub fn name(self) -> ClassificationResult<Option<&'m str>>
The Name of the referenced library item, when authored.
Sourcepub fn description(self) -> ClassificationResult<Option<&'m str>>
pub fn description(self) -> ClassificationResult<Option<&'m str>>
The Description of the referenced library item, when authored.
Sourcepub fn language(self) -> ClassificationResult<Option<&'m str>>
pub fn language(self) -> ClassificationResult<Option<&'m str>>
The Language of the referenced library item, when authored.
Sourcepub fn referenced_library_id(self) -> ClassificationResult<Option<EntityId>>
pub fn referenced_library_id(self) -> ClassificationResult<Option<EntityId>>
Id of the ReferencedLibrary (an IfcLibraryInformation), when authored.
Sourcepub fn validate(self) -> ClassificationResult<()>
pub fn validate(self) -> ClassificationResult<()>
Checks the IfcExternalReference.WR1 rule: at least one of Location, Identification, or Name must be stated.
Trait Implementations§
Source§impl<'m> Clone for LibraryReference<'m>
impl<'m> Clone for LibraryReference<'m>
impl<'m> Copy for LibraryReference<'m>
Auto Trait Implementations§
impl<'m> Freeze for LibraryReference<'m>
impl<'m> RefUnwindSafe for LibraryReference<'m>
impl<'m> Send for LibraryReference<'m>
impl<'m> Sync for LibraryReference<'m>
impl<'m> Unpin for LibraryReference<'m>
impl<'m> UnsafeUnpin for LibraryReference<'m>
impl<'m> UnwindSafe for LibraryReference<'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