#[repr(i32)]pub enum OpenbimIfcStatus {
Show 36 variants
Ok = 0,
NullPointer = 1,
InvalidArgument = 2,
InvalidHandle = 3,
BufferTooSmall = 4,
Parse = 10,
Write = 11,
MissingEntity = 12,
InvalidValue = 13,
OutOfRange = 14,
UnsupportedSchema = 15,
Io = 16,
UnsupportedProfile = 17,
FeatureDisabled = 18,
InvalidModel = 19,
NoValue = 20,
MissingReference = 21,
BudgetExceeded = 22,
Unsupported = 23,
WrongEntityType = 24,
TemplateViolation = 25,
MissingProperty = 26,
CatalogNotLoaded = 27,
UnknownAttribute = 28,
DerivedAttribute = 29,
MissingAttribute = 30,
StillReferenced = 31,
TypeMismatch = 32,
AmbiguousValue = 33,
InvalidSelector = 34,
InverseAttribute = 35,
ExpressMismatch = 36,
InvalidExpress = 37,
HistoryEmpty = 38,
HistoryStale = 39,
Panic = 255,
}Expand description
Result of every ABI call. Ok is zero; every failure is non-zero.
The values from Parse to FeatureDisabled, InvalidModel, and
MissingReference to AmbiguousValue, are the binding errors shared
with the JavaScript and Python bindings; the rest describe misuse of the
C boundary itself.
Variants§
Ok = 0
Success.
NullPointer = 1
A required pointer was null.
InvalidArgument = 2
An argument was malformed (bad UTF-8, a malformed value tape, …).
InvalidHandle = 3
The model handle is zero, stale, or already destroyed.
BufferTooSmall = 4
The output buffer is smaller than *out_required.
Parse = 10
The STEP input could not be parsed (parse).
Write = 11
The model could not be serialized (write).
MissingEntity = 12
No entity has the given id (missing-entity).
InvalidValue = 13
A value did not follow the encoding (invalid-value).
OutOfRange = 14
An id or index is outside the representable range (out-of-range).
UnsupportedSchema = 15
The file’s schema is not bundled, or a domain view does not read it
(unsupported-schema).
Io = 16
A file could not be opened or read (io).
UnsupportedProfile = 17
No ifcXML XSD profile has that name (unsupported-profile).
FeatureDisabled = 18
This build leaves out the feature the call needs (feature-disabled).
InvalidModel = 19
A domain view refused the file’s data as malformed, ambiguous or
unprovable (invalid-model).
NoValue = 20
The requested value does not exist (no schema token, no error, …).
MissingReference = 21
A domain view followed a reference to an entity the file lacks
(missing-reference).
BudgetExceeded = 22
A domain view stopped at a cycle or its depth budget
(budget-exceeded).
Unsupported = 23
A domain view met a construct it does not interpret (unsupported).
WrongEntityType = 24
A domain query named an entity of a type it does not accept, or a
property edit a set type the set does not have (wrong-entity-type).
TemplateViolation = 25
A property edit wrote a value its PSD/QTO template or property
enumeration refuses (template-violation).
MissingProperty = 26
A property edit removed a property the object does not state
(missing-property).
CatalogNotLoaded = 27
A property edit wrote to a Pset_/Qto_ set before its release’s
catalog was loaded (catalog-not-loaded). This library embeds the
catalog, so it never returns this; the value is reserved so every
binding code has one.
UnknownAttribute = 28
A by-name attribute access named no attribute of the entity’s type
in the declared release, explicit or (for a read) INVERSE
(unknown-attribute).
DerivedAttribute = 29
A by-name attribute write named a slot the entity’s type derives,
written * (derived-attribute).
MissingAttribute = 30
An authoring batch left a required attribute of the declared
release unset (missing-attribute).
StillReferenced = 31
An authoring batch removed an entity that an entity other than a
relationship still references (still-referenced).
TypeMismatch = 32
A plain value written by name does not fit the attribute’s declared
type (type-mismatch).
AmbiguousValue = 33
A plain value written by name fits several members of the
attribute’s SELECT; write it exactly instead (ambiguous-value).
InvalidSelector = 34
A selector or value path does not follow the grammar, or names a
class or attribute the declared release does not declare
(invalid-selector); openbim_ifc_v0_1_last_error_span gives the
byte range it refuses.
InverseAttribute = 35
A by-name attribute write named an INVERSE attribute, which holds
no slot (inverse-attribute).
ExpressMismatch = 36
EXPRESS rule text declares another schema than the model’s, or
disagrees with the release’s tables (express-mismatch).
InvalidExpress = 37
EXPRESS rule text does not parse, or names something that binds to
nothing (invalid-express).
HistoryEmpty = 38
An undo or redo with nothing to step through: history is off, or
that stack is empty (history-empty).
HistoryStale = 39
An undo or redo after the model changed outside the history
(history-stale); nothing was changed.
Panic = 255
A Rust panic was contained at the boundary. Report it as a bug.
Trait Implementations§
Source§impl Clone for OpenbimIfcStatus
impl Clone for OpenbimIfcStatus
Source§fn clone(&self) -> OpenbimIfcStatus
fn clone(&self) -> OpenbimIfcStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for OpenbimIfcStatus
Source§impl Debug for OpenbimIfcStatus
impl Debug for OpenbimIfcStatus
impl Eq for OpenbimIfcStatus
Source§impl From<&BindingError> for OpenbimIfcStatus
impl From<&BindingError> for OpenbimIfcStatus
Source§fn from(error: &BindingError) -> Self
fn from(error: &BindingError) -> Self
Source§impl PartialEq for OpenbimIfcStatus
impl PartialEq for OpenbimIfcStatus
impl StructuralPartialEq for OpenbimIfcStatus
Auto Trait Implementations§
impl Freeze for OpenbimIfcStatus
impl RefUnwindSafe for OpenbimIfcStatus
impl Send for OpenbimIfcStatus
impl Sync for OpenbimIfcStatus
impl Unpin for OpenbimIfcStatus
impl UnsafeUnpin for OpenbimIfcStatus
impl UnwindSafe for OpenbimIfcStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.