Skip to main content

ExactPredefinedSet

Struct ExactPredefinedSet 

Source
#[non_exhaustive]
pub struct ExactPredefinedSet { pub source: ExactSource, pub set_id: EntityId, pub entity: Arc<str>, pub name: Option<Arc<str>>, pub attributes: Vec<ExactPropertyEntry>, }
Expand description

A predefined property set assigned to an object, with every attribute its entity declares itself resolved exactly.

Returned by exact_predefined_sets.

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.
§source: ExactSource

Whether the set is assigned to the occurrence or inherited from its IfcTypeObject (an IfcDoorType, or an IFC2X3 IfcDoorStyle); a queried type object’s own sets are Type of that object.

§set_id: EntityId

Entity id of the set.

§entity: Arc<str>

The set’s entity in the release’s spelling, e.g. IfcDoorPanelProperties.

§name: Option<Arc<str>>

The set’s Name, if stated.

§attributes: Vec<ExactPropertyEntry>

Each attribute the entity declares below IfcPropertySetDefinition, in schema order, named as the schema names it (PanelWidth). Each ExactProperty has the set’s id as both set_id and property_id, the attribute’s declared type as value_type, no unit_id, and property_set equal to name or else entity.

Implementations§

Source§

impl ExactPredefinedSet

Source

pub fn attribute(&self, name: &str) -> Option<&ExactProperty>

The attribute named name (schema spelling, e.g. LiningDepth), or None when the entity declares no such attribute in this release.

Trait Implementations§

Source§

impl Clone for ExactPredefinedSet

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ExactPredefinedSet

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ExactPredefinedSet

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ExactPredefinedSet

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.