#[non_exhaustive]pub enum QuantityKind {
Length,
Area,
Volume,
Count,
Weight,
Time,
Number,
}Expand description
The physical dimension a simple quantity measures.
Each variant names its IFC entity and the typed measure its value slot carries. Keeping the pair together is what stops an area being written with a length measure, which parses and validates but is wrong.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Length
IfcQuantityLength.LengthValue, an IfcLengthMeasure.
Area
IfcQuantityArea.AreaValue, an IfcAreaMeasure.
Volume
IfcQuantityVolume.VolumeValue, an IfcVolumeMeasure.
Count
IfcQuantityCount.CountValue, an IfcCountMeasure.
Weight
IfcQuantityWeight.WeightValue, an IfcMassMeasure.
Time
IfcQuantityTime.TimeValue, an IfcTimeMeasure.
Number
IfcQuantityNumber.NumberValue, an IfcNumericMeasure.
IFC4X3 only: a dimensionless count that is not a cardinality, such as a rating or an index.
Implementations§
Source§impl QuantityKind
impl QuantityKind
Sourcepub fn entity_name(self) -> &'static str
pub fn entity_name(self) -> &'static str
The IFC entity name for this dimension.
Sourcepub fn measure_name(self) -> &'static str
pub fn measure_name(self) -> &'static str
The measure type the value slot is declared with.
A defined type, not a SELECT, so create_quantity writes the value
bare; the declaration already states the measure.
Trait Implementations§
Source§impl Clone for QuantityKind
impl Clone for QuantityKind
Source§fn clone(&self) -> QuantityKind
fn clone(&self) -> QuantityKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more