pub struct SchemaSlot<K> { /* private fields */ }Expand description
A named attribute position that moves between schemas. Resolve it with
SchemaSlot::at (an explicit pin) or crate::EntityDecoder::slot
(the source’s own schema); there is deliberately no index().
Implementations§
Source§impl<K> SchemaSlot<K>
impl<K> SchemaSlot<K>
Sourcepub fn entity_declared_in(self, schema: SchemaVersion) -> bool
pub fn entity_declared_in(self, schema: SchemaVersion) -> bool
Whether schema declares the entity this slot belongs to at all,
whether or not the entity has this attribute there (IfcLinearPlacement
is declared from IFC4X1 on; IfcAlignment too).
Sourcepub const fn at(self, schema: SchemaVersion) -> Option<Slot<K>>
pub const fn at(self, schema: SchemaVersion) -> Option<Slot<K>>
The slot as schema lays it out, or None when that schema has no
such attribute (for example IfcSpace.InteriorOrExteriorSpace after
IFC2X3). Pin a schema explicitly only where the entity exists in
that family alone, and say why in a comment.
Trait Implementations§
Source§impl<K> Clone for SchemaSlot<K>
impl<K> Clone for SchemaSlot<K>
Source§impl<K> Debug for SchemaSlot<K>
impl<K> Debug for SchemaSlot<K>
impl<K> Copy for SchemaSlot<K>
Auto Trait Implementations§
impl<K> Freeze for SchemaSlot<K>
impl<K> RefUnwindSafe for SchemaSlot<K>
impl<K> Send for SchemaSlot<K>
impl<K> Sync for SchemaSlot<K>
impl<K> Unpin for SchemaSlot<K>
impl<K> UnwindSafe for SchemaSlot<K>
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