#[non_exhaustive]pub enum SchemaVersion {
Ifc2x3,
Ifc4,
Ifc4x1,
Ifc4x2,
Ifc4x3,
}Expand description
The EXPRESS schema families bundled in the Rust registry.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Implementations§
Source§impl SchemaVersion
impl SchemaVersion
Sourcepub fn attribute(self, entity: &str, name: &str) -> Option<AttrSlot>
pub fn attribute(self, entity: &str, name: &str) -> Option<AttrSlot>
The attribute name of entity in this schema, or None when the
schema does not declare the entity or the entity has no such attribute.
Both names compare ASCII-case-insensitively (IfcWall, IFCWALL,
globalid). A name with non-ASCII characters never matches.
Sourcepub fn attributes(
self,
entity: &str,
) -> Option<impl ExactSizeIterator<Item = AttrSlot>>
pub fn attributes( self, entity: &str, ) -> Option<impl ExactSizeIterator<Item = AttrSlot>>
Every attribute of entity in declaration order, or None when the
schema does not declare the entity. A declared entity without
attributes yields an empty iterator.
Source§impl SchemaVersion
impl SchemaVersion
Sourcepub fn from_file_schema(label: &str) -> Option<Self>
pub fn from_file_schema(label: &str) -> Option<Self>
Resolve a STEP FILE_SCHEMA label to a bundled schema family.
Addendum, corrigendum, and release-candidate suffixes share their
family’s bundled EXPRESS registry. Unknown labels deliberately return
None: guessing a nearby schema could relabel a positional value
incorrectly.
Sourcepub fn attribute_names(
self,
entity_name: &str,
) -> Option<&'static [&'static str]>
pub fn attribute_names( self, entity_name: &str, ) -> Option<&'static [&'static str]>
Attribute names for entity_name in this schema, or None when the
entity is not declared by this schema. A declared entity with no
attributes returns Some(&[]) so callers never confuse it with absent.
The entity name matches ASCII-case-insensitively; a name with
non-ASCII characters is never declared.
Sourcepub fn entity_info(self, entity_name: &str) -> Option<SchemaEntityInfo>
pub fn entity_info(self, entity_name: &str) -> Option<SchemaEntityInfo>
Membership, direct parent, and abstractness from this schema’s EXPRESS declaration. Unknown names fail closed.
Sourcepub fn is_subtype_of(self, child: &str, parent: &str) -> bool
pub fn is_subtype_of(self, child: &str, parent: &str) -> bool
Whether child inherits from parent in this schema’s own graph.
Trait Implementations§
Source§impl Clone for SchemaVersion
impl Clone for SchemaVersion
Source§fn clone(&self) -> SchemaVersion
fn clone(&self) -> SchemaVersion
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more