pub struct PropertySet {
pub id: EntityId,
pub name: Option<Arc<str>>,
pub description: Option<Arc<str>>,
pub properties: Vec<Property>,
}Expand description
An IfcPropertySet with its properties resolved.
Fields§
§id: EntityIdThe IfcPropertySet entity.
name: Option<Arc<str>>Name. The schema requires it (ExistsName).
description: Option<Arc<str>>Description, when stated.
properties: Vec<Property>Properties in file order.
Implementations§
Source§impl PropertySet
impl PropertySet
Sourcepub fn property(&self, name: &str) -> Option<&Property>
pub fn property(&self, name: &str) -> Option<&Property>
Look up a property by name.
The schema requires unique property names within a set
(UniquePropertyNames), so the first match is the only match in a
well-formed file. In a malformed one this is the first in
HasProperties order, and
property_sets_by_object reports the others as
PropertyAnomaly::DuplicatePropertyName.
Trait Implementations§
Source§impl Clone for PropertySet
impl Clone for PropertySet
Source§impl Debug for PropertySet
impl Debug for PropertySet
Source§impl PartialEq for PropertySet
impl PartialEq for PropertySet
impl StructuralPartialEq for PropertySet
Auto Trait Implementations§
impl Freeze for PropertySet
impl RefUnwindSafe for PropertySet
impl Send for PropertySet
impl Sync for PropertySet
impl Unpin for PropertySet
impl UnsafeUnpin for PropertySet
impl UnwindSafe for PropertySet
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