#[non_exhaustive]pub enum ExpressError {
Syntax {
line: u32,
message: String,
},
SchemaMismatch {
source: String,
tables: String,
},
TableMismatch {
entity: String,
detail: String,
},
Unresolved {
context: String,
name: String,
},
}Expand description
The EXPRESS source could not be turned into evaluable rules.
Distinct from a finding: this is about the rule text a caller supplied, not about any model.
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.
Syntax
The source is not EXPRESS this reader understands.
SchemaMismatch
The source names a schema other than the tables it was paired with,
e.g. IFC4.exp supplied for an IFC4X3 model.
TableMismatch
The source parses, but disagrees with the paired tables about an entity’s attributes, so slots read through it would be wrong.
Unresolved
An identifier in a rule or function names nothing in scope.
Trait Implementations§
Source§impl Clone for ExpressError
impl Clone for ExpressError
Source§fn clone(&self) -> ExpressError
fn clone(&self) -> ExpressError
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 moreSource§impl Debug for ExpressError
impl Debug for ExpressError
Source§impl Display for ExpressError
impl Display for ExpressError
impl Eq for ExpressError
Source§impl Error for ExpressError
impl Error for ExpressError
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 ExpressError
impl PartialEq for ExpressError
impl StructuralPartialEq for ExpressError
Auto Trait Implementations§
impl Freeze for ExpressError
impl RefUnwindSafe for ExpressError
impl Send for ExpressError
impl Sync for ExpressError
impl Unpin for ExpressError
impl UnsafeUnpin for ExpressError
impl UnwindSafe for ExpressError
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