pub struct SimpleQuantity<'m, 's> { /* private fields */ }Expand description
A borrowed, schema-resolved IfcPhysicalSimpleQuantity projection.
Enforces the shared non-negativity rule declared on every concrete
simple-quantity subtype (WR21/WR22 in the official schema).
Implementations§
Source§impl<'m, 's> SimpleQuantity<'m, 's>
impl<'m, 's> SimpleQuantity<'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 unit(&self) -> ResourceResult<Option<EntityId>>
pub fn unit(&self) -> ResourceResult<Option<EntityId>>
The Unit attribute, when authored; falls back to the project unit
assignment otherwise.
Sourcepub fn formula(&self) -> ResourceResult<Option<&'m str>>
pub fn formula(&self) -> ResourceResult<Option<&'m str>>
The Formula attribute, when authored.
Sourcepub fn value(&self) -> ResourceResult<SimpleQuantityValue>
pub fn value(&self) -> ResourceResult<SimpleQuantityValue>
The authored measure value, typed by the concrete quantity kind.
Trait Implementations§
Source§impl<'m, 's> Clone for SimpleQuantity<'m, 's>
impl<'m, 's> Clone for SimpleQuantity<'m, 's>
impl<'m, 's> Copy for SimpleQuantity<'m, 's>
Auto Trait Implementations§
impl<'m, 's> Freeze for SimpleQuantity<'m, 's>
impl<'m, 's> RefUnwindSafe for SimpleQuantity<'m, 's>
impl<'m, 's> Send for SimpleQuantity<'m, 's>
impl<'m, 's> Sync for SimpleQuantity<'m, 's>
impl<'m, 's> Unpin for SimpleQuantity<'m, 's>
impl<'m, 's> UnsafeUnpin for SimpleQuantity<'m, 's>
impl<'m, 's> UnwindSafe for SimpleQuantity<'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