pub struct LibraryInformation<'m> { /* private fields */ }Expand description
Borrowed projection of an IFCLIBRARYINFORMATION entity.
Projections handed out by a crate::ClassificationView read against
the release the model declares; one built with try_new has no model
and reads against IFC4, as in 0.2.0.
Implementations§
Source§impl<'m> LibraryInformation<'m>
impl<'m> LibraryInformation<'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 IFCLIBRARYINFORMATION, 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> LibraryInformation<'m>
impl<'m> LibraryInformation<'m>
Sourcepub fn name(self) -> ClassificationResult<&'m str>
pub fn name(self) -> ClassificationResult<&'m str>
The required Name of the library.
Sourcepub fn version(self) -> ClassificationResult<Option<&'m str>>
pub fn version(self) -> ClassificationResult<Option<&'m str>>
The Version label of the library, when authored.
Sourcepub fn publisher_id(self) -> ClassificationResult<Option<EntityId>>
pub fn publisher_id(self) -> ClassificationResult<Option<EntityId>>
Id of the Publisher (an IfcActorSelect), when authored.
Sourcepub fn version_date(self) -> ClassificationResult<Option<&'m str>>
pub fn version_date(self) -> ClassificationResult<Option<&'m str>>
The VersionDate of the library, when authored.
Sourcepub fn location(self) -> ClassificationResult<Option<&'m str>>
pub fn location(self) -> ClassificationResult<Option<&'m str>>
The Location (e.g. a URI) of the library, when authored.
Sourcepub fn description(self) -> ClassificationResult<Option<&'m str>>
pub fn description(self) -> ClassificationResult<Option<&'m str>>
The Description of the library, when authored.
Trait Implementations§
Source§impl<'m> Clone for LibraryInformation<'m>
impl<'m> Clone for LibraryInformation<'m>
impl<'m> Copy for LibraryInformation<'m>
Auto Trait Implementations§
impl<'m> Freeze for LibraryInformation<'m>
impl<'m> RefUnwindSafe for LibraryInformation<'m>
impl<'m> Send for LibraryInformation<'m>
impl<'m> Sync for LibraryInformation<'m>
impl<'m> Unpin for LibraryInformation<'m>
impl<'m> UnsafeUnpin for LibraryInformation<'m>
impl<'m> UnwindSafe for LibraryInformation<'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