Skip to main content

OpenbimIfcStatus

Enum OpenbimIfcStatus 

Source
#[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

Source§

fn clone(&self) -> OpenbimIfcStatus

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for OpenbimIfcStatus

Source§

impl Debug for OpenbimIfcStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for OpenbimIfcStatus

Source§

impl From<&BindingError> for OpenbimIfcStatus

Source§

fn from(error: &BindingError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for OpenbimIfcStatus

Source§

fn eq(&self, other: &OpenbimIfcStatus) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for OpenbimIfcStatus

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.