#[non_exhaustive]pub struct Occurrence {
pub type_name: &'static str,
pub arity: usize,
pub predefined_slot: Option<usize>,
pub members: &'static [&'static str],
pub type_class: Option<&'static str>,
pub ifc4_type_class: Option<&'static str>,
pub ifc2x3_type_class: Option<&'static str>,
}Expand description
One occurrence class: its slots, enum, and permitted type.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type_name: &'static strSTEP type name, upper-case as stored.
arity: usizeTotal attribute count, including inherited.
predefined_slot: Option<usize>Slot holding PredefinedType, or None when the class has none.
members: &'static [&'static str]Permitted PredefinedType tokens; empty when there is no enum.
type_class: Option<&'static str>The one type class IFC4X3 ADD2’s CorrectTypeAssigned permits,
if any.
ifc4_type_class: Option<&'static str>The one type class IFC4 ADD2 TC1’s CorrectTypeAssigned (or,
on doors and windows, CorrectStyleAssigned) permits, if IFC4
declares the class and pairs one.
ifc2x3_type_class: Option<&'static str>The type class IFC2X3 TC1 pairs with the class: IfcDoorStyle
and IfcWindowStyle for doors and windows, otherwise
Self::type_class where IFC2X3 declares it, else none.
Trait Implementations§
Source§impl Clone for Occurrence
impl Clone for Occurrence
Source§fn clone(&self) -> Occurrence
fn clone(&self) -> Occurrence
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 moreimpl Copy for Occurrence
Source§impl Debug for Occurrence
impl Debug for Occurrence
impl Eq for Occurrence
Source§impl PartialEq for Occurrence
impl PartialEq for Occurrence
impl StructuralPartialEq for Occurrence
Auto Trait Implementations§
impl Freeze for Occurrence
impl RefUnwindSafe for Occurrence
impl Send for Occurrence
impl Sync for Occurrence
impl Unpin for Occurrence
impl UnsafeUnpin for Occurrence
impl UnwindSafe for Occurrence
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