Skip to main content

ifc_constraint/
lib.rs

1//! Bounded metric, objective, and constraint-relationship semantics, read and
2//! written by attribute name in the model's declared release (IFC2X3, IFC4
3//! or IFC4X3).
4//!
5//! Values are projected and preserved; this crate does not evaluate compliance,
6//! formulas, references, tables, or time series.
7
8mod association;
9mod authoring;
10mod datetime;
11mod error;
12mod projection;
13mod release;
14mod types;
15mod view;
16
17pub use association::{
18    associate_constraint, associate_constraint_with_owner_history, ConstraintAssociationDraft,
19};
20pub use authoring::{
21    create_metric, create_objective, create_reference, relate_resource_constraint,
22    ConstraintBaseDraft, MetricDraft, ObjectiveDraft, ReferenceDraft, ResourceConstraintDraft,
23};
24pub use datetime::DateTimeInput;
25pub use error::{ConstraintError, ConstraintResult};
26/// The IFC release a projection reads against (re-exported from
27/// `ifc-schema`).
28pub use ifc_schema::SchemaVersion;
29pub use projection::{ConstraintAssignment, Metric, Objective, ResourceConstraintRelationship};
30pub use types::{
31    Benchmark, ConstraintGrade, LogicalOperator, MetricValue, MetricValueDraft, ObjectiveQualifier,
32};
33pub use view::ConstraintView;