pub struct MaterialConstituentSet<'m> { /* private fields */ }Expand description
Borrowed projection of IFCMATERIALCONSTITUENTSET.
Implementations§
Source§impl<'m> MaterialConstituentSet<'m>
impl<'m> MaterialConstituentSet<'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> MaterialConstituentSet<'m>
impl<'m> MaterialConstituentSet<'m>
Sourcepub fn name(self) -> MaterialResult<Option<&'m str>>
pub fn name(self) -> MaterialResult<Option<&'m str>>
IfcMaterialConstituentSet.Name, if given.
Sourcepub fn description(self) -> MaterialResult<Option<&'m str>>
pub fn description(self) -> MaterialResult<Option<&'m str>>
IfcMaterialConstituentSet.Description, if given.
Sourcepub fn constituent_ids(self) -> MaterialResult<Option<Vec<EntityId>>>
pub fn constituent_ids(self) -> MaterialResult<Option<Vec<EntityId>>>
IfcMaterialConstituentSet.MaterialConstituents, if the set has any
members. None when the optional attribute slot is absent, distinct
from an authored-but-empty list (which optional_refs rejects).
Trait Implementations§
Source§impl<'m> Clone for MaterialConstituentSet<'m>
impl<'m> Clone for MaterialConstituentSet<'m>
impl<'m> Copy for MaterialConstituentSet<'m>
Auto Trait Implementations§
impl<'m> Freeze for MaterialConstituentSet<'m>
impl<'m> RefUnwindSafe for MaterialConstituentSet<'m>
impl<'m> Send for MaterialConstituentSet<'m>
impl<'m> Sync for MaterialConstituentSet<'m>
impl<'m> Unpin for MaterialConstituentSet<'m>
impl<'m> UnsafeUnpin for MaterialConstituentSet<'m>
impl<'m> UnwindSafe for MaterialConstituentSet<'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