pub struct ConstraintAssignment<'m> { /* private fields */ }Expand description
Strict borrowed projection, read against one release.
Implementations§
Source§impl<'m> ConstraintAssignment<'m>
impl<'m> ConstraintAssignment<'m>
Sourcepub fn try_new(
id: EntityId,
entity: &'m Entity,
release: SchemaVersion,
) -> ConstraintResult<Self>
pub fn try_new( id: EntityId, entity: &'m Entity, release: SchemaVersion, ) -> ConstraintResult<Self>
Construct from an entity of the exact expected kind, read
against release.
ConstraintView binds the model’s declared release; use
this when the release is known some other way.
§Errors
WrongEntityType for another entity, UnsupportedSchema
for a release this crate is not verified against (IFC4X1,
IFC4X2), and EntityNotInSchema for an entity the release
does not declare.
Sourcepub const fn release(self) -> SchemaVersion
pub const fn release(self) -> SchemaVersion
The release this projection reads against.
Source§impl<'m> ConstraintAssignment<'m>
impl<'m> ConstraintAssignment<'m>
Sourcepub fn global_id(self) -> ConstraintResult<&'m str>
pub fn global_id(self) -> ConstraintResult<&'m str>
Root GlobalId.
Sourcepub fn intent(self) -> ConstraintResult<Option<&'m str>>
pub fn intent(self) -> ConstraintResult<Option<&'m str>>
Optional association intent (required in IFC2X3).
Related definition-select targets (IfcRoot under WR21 in IFC2X3).
Sourcepub fn relating_constraint(self) -> ConstraintResult<EntityId>
pub fn relating_constraint(self) -> ConstraintResult<EntityId>
Relating metric or objective.
Trait Implementations§
Source§impl<'m> Clone for ConstraintAssignment<'m>
impl<'m> Clone for ConstraintAssignment<'m>
Source§fn clone(&self) -> ConstraintAssignment<'m>
fn clone(&self) -> ConstraintAssignment<'m>
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 moreimpl<'m> Copy for ConstraintAssignment<'m>
Auto Trait Implementations§
impl<'m> Freeze for ConstraintAssignment<'m>
impl<'m> RefUnwindSafe for ConstraintAssignment<'m>
impl<'m> Send for ConstraintAssignment<'m>
impl<'m> Sync for ConstraintAssignment<'m>
impl<'m> Unpin for ConstraintAssignment<'m>
impl<'m> UnsafeUnpin for ConstraintAssignment<'m>
impl<'m> UnwindSafe for ConstraintAssignment<'m>
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