pub struct MaterialProperties<'m> { /* private fields */ }Expand description
Borrowed projection of IFCMATERIALPROPERTIES.
Implementations§
Source§impl<'m> MaterialProperties<'m>
impl<'m> MaterialProperties<'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> MaterialProperties<'m>
impl<'m> MaterialProperties<'m>
Sourcepub fn name(self) -> MaterialResult<Option<&'m str>>
pub fn name(self) -> MaterialResult<Option<&'m str>>
IfcMaterialProperties.Name, if given.
Sourcepub fn description(self) -> MaterialResult<Option<&'m str>>
pub fn description(self) -> MaterialResult<Option<&'m str>>
IfcMaterialProperties.Description, if given.
Sourcepub fn property_ids(self) -> MaterialResult<Vec<EntityId>>
pub fn property_ids(self) -> MaterialResult<Vec<EntityId>>
IfcMaterialProperties.Properties, the ids of the property set’s
IfcProperty members. Required and must be non-empty.
Sourcepub fn material_id(self) -> MaterialResult<EntityId>
pub fn material_id(self) -> MaterialResult<EntityId>
IfcMaterialProperties.Material, the id of the IfcMaterialDefinition
these properties describe. Required.
Trait Implementations§
Source§impl<'m> Clone for MaterialProperties<'m>
impl<'m> Clone for MaterialProperties<'m>
impl<'m> Copy for MaterialProperties<'m>
Auto Trait Implementations§
impl<'m> Freeze for MaterialProperties<'m>
impl<'m> RefUnwindSafe for MaterialProperties<'m>
impl<'m> Send for MaterialProperties<'m>
impl<'m> Sync for MaterialProperties<'m>
impl<'m> Unpin for MaterialProperties<'m>
impl<'m> UnsafeUnpin for MaterialProperties<'m>
impl<'m> UnwindSafe for MaterialProperties<'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