pub struct DecodedEntity {
pub id: EntityId,
pub ifc_type: IfcType,
pub attributes: Vec<AttributeValue>,
}Expand description
Decoded IFC entity
Represents a fully decoded IFC entity with its ID, type, and attribute values.
Fields§
§id: EntityIdEntity ID
ifc_type: IfcTypeEntity type
attributes: Vec<AttributeValue>Attribute values in order
Implementations§
Source§impl DecodedEntity
impl DecodedEntity
Sourcepub fn get(&self, index: usize) -> Option<&AttributeValue>
pub fn get(&self, index: usize) -> Option<&AttributeValue>
Get attribute at index
Sourcepub fn get_string(&self, index: usize) -> Option<&str>
pub fn get_string(&self, index: usize) -> Option<&str>
Get string at index
Sourcepub fn get_integer(&self, index: usize) -> Option<i64>
pub fn get_integer(&self, index: usize) -> Option<i64>
Get integer at index
Sourcepub fn get_list(&self, index: usize) -> Option<&[AttributeValue]>
pub fn get_list(&self, index: usize) -> Option<&[AttributeValue]>
Get list at index
Trait Implementations§
Source§impl Clone for DecodedEntity
impl Clone for DecodedEntity
Source§fn clone(&self) -> DecodedEntity
fn clone(&self) -> DecodedEntity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DecodedEntity
impl RefUnwindSafe for DecodedEntity
impl Send for DecodedEntity
impl Sync for DecodedEntity
impl Unpin for DecodedEntity
impl UnsafeUnpin for DecodedEntity
impl UnwindSafe for DecodedEntity
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