pub struct Material<'m> { /* private fields */ }Expand description
Borrowed projection of IFCMATERIAL.
Implementations§
Source§impl<'m> Material<'m>
impl<'m> Material<'m>
Sourcepub fn try_new(id: EntityId, entity: &'m Entity) -> MaterialResult<Self>
pub fn try_new(id: EntityId, entity: &'m Entity) -> MaterialResult<Self>
Wraps entity as this view after checking it is an instance
of the expected IFC entity type; fails with
crate::MaterialError::WrongEntityType otherwise.
Source§impl<'m> Material<'m>
impl<'m> Material<'m>
Sourcepub fn name(self) -> MaterialResult<&'m str>
pub fn name(self) -> MaterialResult<&'m str>
IfcMaterial.Name. Required; a malformed record is an error, not
an absent value.
Sourcepub fn description(self) -> MaterialResult<Option<&'m str>>
pub fn description(self) -> MaterialResult<Option<&'m str>>
IfcMaterial.Description, if given.
Sourcepub fn category(self) -> MaterialResult<Option<&'m str>>
pub fn category(self) -> MaterialResult<Option<&'m str>>
IfcMaterial.Category, if given.
Trait Implementations§
Auto Trait Implementations§
impl<'m> Freeze for Material<'m>
impl<'m> RefUnwindSafe for Material<'m>
impl<'m> Send for Material<'m>
impl<'m> Sync for Material<'m>
impl<'m> Unpin for Material<'m>
impl<'m> UnsafeUnpin for Material<'m>
impl<'m> UnwindSafe for Material<'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