pub(crate) struct AppliedMemberConstraint {
pub(crate) member_region_scc: ConstraintSccIndex,
pub(crate) min_choice: RegionVid,
pub(crate) member_constraint_index: NllMemberConstraintIndex,
}Expand description
Each time that apply_member_constraint is successful, it appends
one of these structs to the member_constraints_applied field.
This is used in error reporting to trace out what happened.
The way that apply_member_constraint works is that it effectively
adds a new lower bound to the SCC it is analyzing: so you wind up
with 'R: 'O where 'R is the pick-region and 'O is the
minimal viable option.
Fields
member_region_scc: ConstraintSccIndexThe SCC that was affected. (The “member region”.)
The vector if AppliedMemberConstraint elements is kept sorted
by this field.
min_choice: RegionVidThe “best option” that apply_member_constraint found – this was
added as an “ad-hoc” lower-bound to member_region_scc.
member_constraint_index: NllMemberConstraintIndexThe “member constraint index” – we can find out details about
the constraint from
set.member_constraints[member_constraint_index].
Trait Implementations
sourceimpl Clone for AppliedMemberConstraint
impl Clone for AppliedMemberConstraint
sourcefn clone(&self) -> AppliedMemberConstraint
fn clone(&self) -> AppliedMemberConstraint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AppliedMemberConstraint
impl Debug for AppliedMemberConstraint
sourceimpl Ord for AppliedMemberConstraint
impl Ord for AppliedMemberConstraint
sourcefn cmp(&self, other: &AppliedMemberConstraint) -> Ordering
fn cmp(&self, other: &AppliedMemberConstraint) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<AppliedMemberConstraint> for AppliedMemberConstraint
impl PartialEq<AppliedMemberConstraint> for AppliedMemberConstraint
sourcefn eq(&self, other: &AppliedMemberConstraint) -> bool
fn eq(&self, other: &AppliedMemberConstraint) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AppliedMemberConstraint) -> bool
fn ne(&self, other: &AppliedMemberConstraint) -> bool
This method tests for !=.
sourceimpl PartialOrd<AppliedMemberConstraint> for AppliedMemberConstraint
impl PartialOrd<AppliedMemberConstraint> for AppliedMemberConstraint
sourcefn partial_cmp(&self, other: &AppliedMemberConstraint) -> Option<Ordering>
fn partial_cmp(&self, other: &AppliedMemberConstraint) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for AppliedMemberConstraint
impl Eq for AppliedMemberConstraint
impl StructuralEq for AppliedMemberConstraint
impl StructuralPartialEq for AppliedMemberConstraint
Auto Trait Implementations
impl RefUnwindSafe for AppliedMemberConstraint
impl Send for AppliedMemberConstraint
impl Sync for AppliedMemberConstraint
impl Unpin for AppliedMemberConstraint
impl UnwindSafe for AppliedMemberConstraint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for T where
T: ?Sized,
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 12 bytes