pub struct QuantityExtras<'a> {
pub description: Option<&'a str>,
pub unit: Option<EntityId>,
pub formula: Option<&'a str>,
}Expand description
The optional attributes of an IfcPhysicalSimpleQuantity.
Separated from create_quantity so the common call stays short,
while Description, Unit and Formula remain reachable. They are
attributes of the entity, not decoration: the reader in this crate
resolves all three.
Fields§
§description: Option<&'a str>IfcPhysicalQuantity.Description.
unit: Option<EntityId>IfcPhysicalSimpleQuantity.Unit, an IfcNamedUnit reference.
Left unset the quantity is read in the project’s default unit for its measure, which is usually what a take-off wants.
formula: Option<&'a str>Formula, how the quantity was derived. IFC4 and IFC4X3 only: an
IFC2X3 quantity has no Formula, and one given for it is refused.
Trait Implementations§
Source§impl<'a> Clone for QuantityExtras<'a>
impl<'a> Clone for QuantityExtras<'a>
impl<'a> Copy for QuantityExtras<'a>
Source§impl<'a> Debug for QuantityExtras<'a>
impl<'a> Debug for QuantityExtras<'a>
Auto Trait Implementations§
impl<'a> Freeze for QuantityExtras<'a>
impl<'a> RefUnwindSafe for QuantityExtras<'a>
impl<'a> Send for QuantityExtras<'a>
impl<'a> Sync for QuantityExtras<'a>
impl<'a> Unpin for QuantityExtras<'a>
impl<'a> UnsafeUnpin for QuantityExtras<'a>
impl<'a> UnwindSafe for QuantityExtras<'a>
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