pub struct ConstraintView<'m> { /* private fields */ }Expand description
Borrowed entry point for constraint projections and inverse-style queries.
Implementations§
Source§impl<'m> ConstraintView<'m>
impl<'m> ConstraintView<'m>
Sourcepub fn metric(self, id: EntityId) -> ConstraintResult<Metric<'m>>
pub fn metric(self, id: EntityId) -> ConstraintResult<Metric<'m>>
Strictly project one metric.
Sourcepub fn objective(self, id: EntityId) -> ConstraintResult<Objective<'m>>
pub fn objective(self, id: EntityId) -> ConstraintResult<Objective<'m>>
Strictly project one objective.
Sourcepub fn resource_constraint_relationship(
self,
id: EntityId,
) -> ConstraintResult<ResourceConstraintRelationship<'m>>
pub fn resource_constraint_relationship( self, id: EntityId, ) -> ConstraintResult<ResourceConstraintRelationship<'m>>
Strictly project one resource constraint relationship.
Sourcepub fn constraint_assignment(
self,
id: EntityId,
) -> ConstraintResult<ConstraintAssignment<'m>>
pub fn constraint_assignment( self, id: EntityId, ) -> ConstraintResult<ConstraintAssignment<'m>>
Strictly project one rooted constraint association.
Sourcepub fn resources_constrained_by(
self,
constraint: EntityId,
) -> ConstraintResult<Vec<EntityId>>
pub fn resources_constrained_by( self, constraint: EntityId, ) -> ConstraintResult<Vec<EntityId>>
Resource-select IDs directly governed by a constraint.
Sourcepub fn objects_constrained_by(
self,
constraint: EntityId,
) -> ConstraintResult<Vec<EntityId>>
pub fn objects_constrained_by( self, constraint: EntityId, ) -> ConstraintResult<Vec<EntityId>>
Definition-select IDs directly associated with a constraint.
Trait Implementations§
Source§impl<'m> Clone for ConstraintView<'m>
impl<'m> Clone for ConstraintView<'m>
impl<'m> Copy for ConstraintView<'m>
Auto Trait Implementations§
impl<'m> !RefUnwindSafe for ConstraintView<'m>
impl<'m> !UnwindSafe for ConstraintView<'m>
impl<'m> Freeze for ConstraintView<'m>
impl<'m> Send for ConstraintView<'m>
impl<'m> Sync for ConstraintView<'m>
impl<'m> Unpin for ConstraintView<'m>
impl<'m> UnsafeUnpin for ConstraintView<'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