#[non_exhaustive]pub enum TemplateError {
Release(ExactPropertyError),
NoTemplates {
schema: SchemaVersion,
},
MissingEntity {
id: EntityId,
},
NotATemplate {
id: EntityId,
type_name: String,
},
}Expand description
Why property templates could not be read or checked against the release a model declares.
Distinct from PropertyAnomaly: an anomaly is a malformed fact inside
a file that can still be read; this refuses the whole request.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Release(ExactPropertyError)
The model cannot be bound to one release, for the reason
exact_schema gives: STEP diagnostics, no or
several FILE_SCHEMA entries, or an unsupported one.
NoTemplates
The declared release defines no property templates.
IfcPropertySetTemplate and its property templates are new in IFC4;
IFC2X3 TC1 declares none of them, so nothing in such a file can be a
template.
Fields
§
schema: SchemaVersionThe release the header declares.
MissingEntity
The entity is not in the model.
NotATemplate
The entity is not the kind of template asked for.
Trait Implementations§
Source§impl Clone for TemplateError
impl Clone for TemplateError
Source§impl Debug for TemplateError
impl Debug for TemplateError
Source§impl Display for TemplateError
impl Display for TemplateError
impl Eq for TemplateError
Source§impl Error for TemplateError
impl Error for TemplateError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for TemplateError
impl PartialEq for TemplateError
impl StructuralPartialEq for TemplateError
Auto Trait Implementations§
impl Freeze for TemplateError
impl RefUnwindSafe for TemplateError
impl Send for TemplateError
impl Sync for TemplateError
impl Unpin for TemplateError
impl UnsafeUnpin for TemplateError
impl UnwindSafe for TemplateError
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