pub struct CostItem<'m> { /* private fields */ }Expand description
A borrowed view of an IfcCostItem entity.
Implementations§
Source§impl<'m> CostItem<'m>
impl<'m> CostItem<'m>
Sourcepub fn new(id: EntityId, entity: &'m Entity) -> Self
pub fn new(id: EntityId, entity: &'m Entity) -> Self
Wrap an entity known to be an IfcCostItem.
Sourcepub fn identification(&self) -> Option<&'m str>
pub fn identification(&self) -> Option<&'m str>
The user-facing identification code.
Sourcepub fn description(&self) -> Option<&'m str>
pub fn description(&self) -> Option<&'m str>
The description.
Sourcepub fn predefined_type(&self) -> Option<&'m str>
pub fn predefined_type(&self) -> Option<&'m str>
The predefined type token, e.g. MATERIAL, without its dots.
Sourcepub fn value_refs(&self) -> Vec<EntityId>
pub fn value_refs(&self) -> Vec<EntityId>
Ids of the IfcCostValues attached to this item.
Sourcepub fn quantity_refs(&self) -> Vec<EntityId>
pub fn quantity_refs(&self) -> Vec<EntityId>
Ids of the quantities this cost is computed against.
Trait Implementations§
Auto Trait Implementations§
impl<'m> Freeze for CostItem<'m>
impl<'m> RefUnwindSafe for CostItem<'m>
impl<'m> Send for CostItem<'m>
impl<'m> Sync for CostItem<'m>
impl<'m> Unpin for CostItem<'m>
impl<'m> UnsafeUnpin for CostItem<'m>
impl<'m> UnwindSafe for CostItem<'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