pub struct ComplexQuantity<'m, 's> { /* private fields */ }Expand description
A borrowed, schema-resolved IfcPhysicalComplexQuantity projection.
HasQuantities is a SET: the official schema forbids a complex
quantity from listing itself among its own members (NoSelfReference).
This projection enforces that rule and reports authored-order members as
entity references rather than eagerly recursing, since a complex
quantity may nest further complex quantities without a fixed bound.
Implementations§
Source§impl<'m, 's> ComplexQuantity<'m, 's>
impl<'m, 's> ComplexQuantity<'m, 's>
Sourcepub fn name(&self) -> ResourceResult<&'m str>
pub fn name(&self) -> ResourceResult<&'m str>
The Name attribute.
Sourcepub fn description(&self) -> ResourceResult<Option<&'m str>>
pub fn description(&self) -> ResourceResult<Option<&'m str>>
The Description attribute, when authored.
Sourcepub fn discrimination(&self) -> ResourceResult<&'m str>
pub fn discrimination(&self) -> ResourceResult<&'m str>
The Discrimination attribute: the basis this composite groups by.
Sourcepub fn quality(&self) -> ResourceResult<Option<&'m str>>
pub fn quality(&self) -> ResourceResult<Option<&'m str>>
The Quality attribute, when authored.
Sourcepub fn usage(&self) -> ResourceResult<Option<&'m str>>
pub fn usage(&self) -> ResourceResult<Option<&'m str>>
The Usage attribute, when authored.
Sourcepub fn member_ids(&self) -> ResourceResult<Vec<EntityId>>
pub fn member_ids(&self) -> ResourceResult<Vec<EntityId>>
The HasQuantities attribute: authored-order member references.
Trait Implementations§
Source§impl<'m, 's> Clone for ComplexQuantity<'m, 's>
impl<'m, 's> Clone for ComplexQuantity<'m, 's>
impl<'m, 's> Copy for ComplexQuantity<'m, 's>
Auto Trait Implementations§
impl<'m, 's> Freeze for ComplexQuantity<'m, 's>
impl<'m, 's> RefUnwindSafe for ComplexQuantity<'m, 's>
impl<'m, 's> Send for ComplexQuantity<'m, 's>
impl<'m, 's> Sync for ComplexQuantity<'m, 's>
impl<'m, 's> Unpin for ComplexQuantity<'m, 's>
impl<'m, 's> UnsafeUnpin for ComplexQuantity<'m, 's>
impl<'m, 's> UnwindSafe for ComplexQuantity<'m, 's>
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