#[non_exhaustive]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 (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.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§fn clone(&self) -> PropertySet
fn clone(&self) -> PropertySet
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 moreSource§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