#[non_exhaustive]pub enum SchemaVersion {
Ifc2x3,
Ifc4,
Ifc4x1,
Ifc4x2,
Ifc4x3,
}Expand description
The IFC release a classification read binds to (re-exported from ifc-schema).
Which IFC schema version a table describes.
#[non_exhaustive]: a release added later is a new variant, and a
consumer’s match must say what it does with a release it has not
proven – refuse it, never alias it to a neighbour.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Ifc2x3
IFC2x3 TC1 — 653 entities. Still the most common in the wild.
Ifc4
IFC4 ADD2 TC1 — 776 entities. The ISO-standard release.
Ifc4x1
IFC4x1 FINAL — 801 entities. Adds alignment (IfcAlignment and its
curves) to IFC4.
Ifc4x2
IFC4x2 FINAL — 816 entities. Adds bridges (IfcBridge, IfcFacility)
to IFC4x1.
Ifc4x3
IFC4x3 ADD2 — 876 entities. Adds alignment and civil infrastructure.
Implementations§
Source§impl SchemaVersion
impl SchemaVersion
Sourcepub const ALL: [SchemaVersion; 5]
pub const ALL: [SchemaVersion; 5]
Every version this crate knows, oldest first.
Which of them have bundled tables in a given build is a separate
question; see for_version.
Sourcepub const fn release_id(self) -> &'static str
pub const fn release_id(self) -> &'static str
Exact published release identifier for the bundled structural table.
Sourcepub const fn expected_entity_count(self) -> usize
pub const fn expected_entity_count(self) -> usize
Entity count asserted when the bundled artifact is generated.
Sourcepub const fn expected_type_count(self) -> usize
pub const fn expected_type_count(self) -> usize
Defined-type count asserted when the bundled artifact is generated.
Sourcepub const fn header_tokens(self) -> &'static [&'static str]
pub const fn header_tokens(self) -> &'static [&'static str]
Header tokens accepted for this release, excluding case-only variants.
Sourcepub const fn feature_name(self) -> &'static str
pub const fn feature_name(self) -> &'static str
The ifc-schema cargo feature that bundles this release’s table.
Sourcepub const fn is_bundled(self) -> bool
pub const fn is_bundled(self) -> bool
Whether this build bundles this release’s table, i.e. whether
for_version(self) succeeds.
Sourcepub fn from_header_token(token: &str) -> Option<SchemaVersion>
pub fn from_header_token(token: &str) -> Option<SchemaVersion>
Parse the token found in a STEP file’s FILE_SCHEMA header entry.
Trait Implementations§
Source§impl Clone for SchemaVersion
impl Clone for SchemaVersion
Source§fn clone(&self) -> SchemaVersion
fn clone(&self) -> SchemaVersion
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more