Struct rustc_mir::borrow_check::nll::region_infer::Constraint [−][src]
pub struct Constraint {
sup: RegionVid,
sub: RegionVid,
point: Location,
next: Option<ConstraintIndex>,
span: Span,
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Fields
sup: RegionVid
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
The region SUP must outlive SUB...
sub: RegionVid
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Region that must be outlived.
point: Location
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
At this location.
next: Option<ConstraintIndex>
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Later on, we thread the constraints onto a linked list
grouped by their sub field. So if you had:
| Index | Constraint | Next Field |
|---|---|---|
| 0 | 'a: 'b | Some(2) |
| 1 | 'b: 'c | None |
| 2 | 'c: 'b | None |
span: Span
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Where did this constraint arise?
Trait Implementations
impl Copy for Constraint[src]
impl Copy for Constraintimpl Clone for Constraint[src]
impl Clone for Constraintfn clone(&self) -> Constraint[src]
fn clone(&self) -> ConstraintReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for Constraint[src]
impl PartialEq for Constraintfn eq(&self, other: &Constraint) -> bool[src]
fn eq(&self, other: &Constraint) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Constraint) -> bool[src]
fn ne(&self, other: &Constraint) -> boolThis method tests for !=.
impl Eq for Constraint[src]
impl Eq for Constraintfn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)impl PartialOrd for Constraint[src]
impl PartialOrd for Constraintfn partial_cmp(&self, other: &Constraint) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Constraint) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Constraint) -> bool[src]
fn lt(&self, other: &Constraint) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Constraint) -> bool[src]
fn le(&self, other: &Constraint) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Constraint) -> bool[src]
fn gt(&self, other: &Constraint) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Constraint) -> bool[src]
fn ge(&self, other: &Constraint) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for Constraint[src]
impl Ord for Constraintfn cmp(&self, other: &Constraint) -> Ordering[src]
fn cmp(&self, other: &Constraint) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for Constraint[src]
impl Hash for Constraintfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for Constraint[src]
impl Debug for ConstraintAuto Trait Implementations
impl !Send for Constraint
impl !Send for Constraintimpl !Sync for Constraint
impl !Sync for Constraint