#[non_exhaustive]pub enum UnpublishedRelease {
Ifc4x3Tc1,
Ifc4x3Add1,
}Expand description
An IFC release whose identifier is known but whose normative EXPRESS schema buildingSMART does not publish (#467).
No tables exist for it, and it is never aliased to a neighbouring
release: SchemaVersion::from_header_token returns None for its
identifier. This type lets a caller say which release a file
declares when refusing it.
Source of each identifier and version number: the SCHEMA_NAME and
documentation header of buildingSMART/IFC4.x-development’s generator,
IFC4X3_TC1 “IFC 4.3.0.1” (commits 3629c4ec3e and 623808efce,
2022-08) and IFC4X3_ADD1 “IFC 4.3.1.0” (commit 29f283e98f,
2022-09), both superseded by IFC4X3_ADD2 “IFC 4.3.2.0” (commit
524daac53c, 2023-09), the only IFC 4.3 release buildingSMART lists
and publishes as EXPRESS.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Implementations§
Source§impl UnpublishedRelease
impl UnpublishedRelease
Sourcepub const fn identifier(self) -> &'static str
pub const fn identifier(self) -> &'static str
The SCHEMA identifier the release’s files declare in FILE_SCHEMA.
Sourcepub const fn version_number(self) -> &'static str
pub const fn version_number(self) -> &'static str
The four-part IFC version number of the release.
Sourcepub const fn superseded_by(self) -> SchemaVersion
pub const fn superseded_by(self) -> SchemaVersion
The published release that superseded it. Not a claim that the two schemas are identical: they are not proven to be.
Sourcepub fn from_header_token(token: &str) -> Option<Self>
pub fn from_header_token(token: &str) -> Option<Self>
The unpublished release a FILE_SCHEMA token names, if any. Case
and surrounding whitespace are ignored, as for
SchemaVersion::from_header_token.
Trait Implementations§
Source§impl Clone for UnpublishedRelease
impl Clone for UnpublishedRelease
Source§fn clone(&self) -> UnpublishedRelease
fn clone(&self) -> UnpublishedRelease
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more