Enum rustc_mir::borrow_check::nll::region_infer::Cause [−][src]
enum Cause {
LiveVar(Local, Location),
DropVar(Local, Location),
LiveOther(Location),
UniversalRegion(RegionVid),
Outlives {
original_cause: Rc<Cause>,
constraint_location: Location,
constraint_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?
NB: The variants in Cause are intentionally ordered. Lower
values are preferred when it comes to error messages. Do not
reorder willy nilly.
Variants
LiveVar(Local, 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?
point inserted because Local was live at the given Location
DropVar(Local, 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?
point inserted because Local was dropped at the given Location
LiveOther(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?
point inserted because the type was live at the given Location, but not as part of some local variable
UniversalRegion(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?
part of the initial set of values for a universally quantified region
Outlives🔬 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?
Element E was added to R because there was some
outlives obligation R: R1 @ P and R1 contained E.
Fields of Outlives
original_cause: Rc<Cause> | 🔬 This is a nightly-only experimental API. ( |
constraint_location: Location | 🔬 This is a nightly-only experimental API. ( |
constraint_span: Span | 🔬 This is a nightly-only experimental API. ( |
Methods
impl Cause[src]
impl Causefn root_cause(&self) -> &Cause[src]
fn root_cause(&self) -> &Cause🔬 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?
Trait Implementations
impl Clone for Cause[src]
impl Clone for Causefn clone(&self) -> Cause[src]
fn clone(&self) -> CauseReturns 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 Debug for Cause[src]
impl Debug for Causefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialOrd for Cause[src]
impl PartialOrd for Causefn partial_cmp(&self, other: &Cause) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Cause) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Cause) -> bool[src]
fn lt(&self, other: &Cause) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Cause) -> bool[src]
fn le(&self, other: &Cause) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Cause) -> bool[src]
fn gt(&self, other: &Cause) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Cause) -> bool[src]
fn ge(&self, other: &Cause) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for Cause[src]
impl Ord for Causefn cmp(&self, other: &Cause) -> Ordering[src]
fn cmp(&self, other: &Cause) -> 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 PartialEq for Cause[src]
impl PartialEq for Causefn eq(&self, other: &Cause) -> bool[src]
fn eq(&self, other: &Cause) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Cause) -> bool[src]
fn ne(&self, other: &Cause) -> boolThis method tests for !=.
impl Eq for Cause[src]
impl Eq for Causefn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)