pub enum SchemaVersion {
Ifc2x3,
Ifc4,
Ifc4x3,
}Expand description
The IFC release a classification read binds to (re-exported from ifc-schema).
Which IFC schema version a table describes.
Variants§
Ifc2x3
IFC2x3 TC1 — 653 entities. Still the most common in the wild.
Ifc4
IFC4 ADD2 TC1 — 776 entities. The ISO-standard release.
Ifc4x3
IFC4x3 ADD2 — 876 entities. Adds alignment and civil infrastructure.
Implementations§
Source§impl SchemaVersion
impl SchemaVersion
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 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
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 Copy for SchemaVersion
Source§impl Debug for SchemaVersion
impl Debug for SchemaVersion
impl Eq for SchemaVersion
Source§impl PartialEq for SchemaVersion
impl PartialEq for SchemaVersion
impl StructuralPartialEq for SchemaVersion
Auto Trait Implementations§
impl Freeze for SchemaVersion
impl RefUnwindSafe for SchemaVersion
impl Send for SchemaVersion
impl Sync for SchemaVersion
impl Unpin for SchemaVersion
impl UnsafeUnpin for SchemaVersion
impl UnwindSafe for SchemaVersion
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