[−][src]Struct rustc_mir::borrow_check::region_infer::AppliedMemberConstraint
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
impl Clone for AppliedMemberConstraint[src]
pub fn clone(&self) -> AppliedMemberConstraint[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for AppliedMemberConstraint[src]
impl Debug for AppliedMemberConstraint[src]
impl Eq for AppliedMemberConstraint[src]
impl Ord for AppliedMemberConstraint[src]
pub fn cmp(&self, other: &AppliedMemberConstraint) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<AppliedMemberConstraint> for AppliedMemberConstraint[src]
pub fn eq(&self, other: &AppliedMemberConstraint) -> bool[src]
pub fn ne(&self, other: &AppliedMemberConstraint) -> bool[src]
impl PartialOrd<AppliedMemberConstraint> for AppliedMemberConstraint[src]
pub fn partial_cmp(&self, other: &AppliedMemberConstraint) -> Option<Ordering>[src]
pub fn lt(&self, other: &AppliedMemberConstraint) -> bool[src]
pub fn le(&self, other: &AppliedMemberConstraint) -> bool[src]
pub fn gt(&self, other: &AppliedMemberConstraint) -> bool[src]
pub fn ge(&self, other: &AppliedMemberConstraint) -> bool[src]
impl StructuralEq for AppliedMemberConstraint[src]
impl StructuralPartialEq for AppliedMemberConstraint[src]
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
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.