pub struct MeasureWithUnit<'m, 's> { /* private fields */ }Expand description
A borrowed, schema-resolved IfcMeasureWithUnit projection.
Implementations§
Source§impl<'m, 's> MeasureWithUnit<'m, 's>
impl<'m, 's> MeasureWithUnit<'m, 's>
Sourcepub fn value_component(&self) -> ResourceResult<&'m Value>
pub fn value_component(&self) -> ResourceResult<&'m Value>
The ValueComponent attribute: the typed IfcValue as authored, for
example IFCCOUNTMEASURE(4.).
The result is always a Value::Typed whose type name the release
accepts as an IfcValue; an untyped literal, or a wrapper naming a
type outside IfcValue, is refused with
ResourceError::InvalidValue rather than guessed.
Sourcepub fn unit_component(&self) -> ResourceResult<EntityId>
pub fn unit_component(&self) -> ResourceResult<EntityId>
The UnitComponent attribute: an IfcDerivedUnit, IfcNamedUnit
or IfcMonetaryUnit reference.
Trait Implementations§
Source§impl<'m, 's> Clone for MeasureWithUnit<'m, 's>
impl<'m, 's> Clone for MeasureWithUnit<'m, 's>
Source§fn clone(&self) -> MeasureWithUnit<'m, 's>
fn clone(&self) -> MeasureWithUnit<'m, 's>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'m, 's> Copy for MeasureWithUnit<'m, 's>
Auto Trait Implementations§
impl<'m, 's> !RefUnwindSafe for MeasureWithUnit<'m, 's>
impl<'m, 's> !UnwindSafe for MeasureWithUnit<'m, 's>
impl<'m, 's> Freeze for MeasureWithUnit<'m, 's>
impl<'m, 's> Send for MeasureWithUnit<'m, 's>
impl<'m, 's> Sync for MeasureWithUnit<'m, 's>
impl<'m, 's> Unpin for MeasureWithUnit<'m, 's>
impl<'m, 's> UnsafeUnpin for MeasureWithUnit<'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