Skip to main content

measure_unit_type

Function measure_unit_type 

Source
pub fn measure_unit_type(
    schema: SchemaVersion,
    measure_type: &str,
) -> Result<MeasureUnitType, ExactUnitError>
Expand description

The unit a measure type takes in schema, derived from the release’s own tables as exact_unit derives it (IfcAreaMeasure takes an AREAUNIT, IfcNonNegativeLengthMeasure a LENGTHUNIT).

§Errors

ExactUnitError::Structure with UnsupportedSchema for a release the exact resolver does not bind (IFC4X1, IFC4X2) or the build leaves out; ExactUnitError::MeasureNotInSchema, ExactUnitError::NotAMeasure and ExactUnitError::UnmappedMeasureType as exact_unit refuses them.