[][src]Struct rustc_mir::borrow_check::nll::type_check::free_region_relations::UniversalRegionRelations

pub(crate) struct UniversalRegionRelations<'tcx> {
    universal_regions: Rc<UniversalRegions<'tcx>>,
    outlives: TransitiveRelation<RegionVid>,
    inverse_outlives: TransitiveRelation<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?

Fields

🔬 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?

🔬 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?

Stores the outlives relations that are known to hold from the implied bounds, in-scope where clauses, and that sort of thing.

🔬 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?

This is the <= relation; that is, if a: b, then b <= a, and we store that here. This is useful when figuring out how to express some local region in terms of external regions our caller will understand.

Methods

impl<'tcx> UniversalRegionRelations<'tcx>
[src]

🔬 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?

Records in the outlives_relation (and inverse_outlives_relation) that fr_a: fr_b. Invoked by the builder below.

🔬 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?

Given two universal regions, returns the postdominating upper-bound (effectively the least upper bound).

(See TransitiveRelation::postdom_upper_bound for details on the postdominating upper bound in general.)

🔬 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?

Finds an "upper bound" for fr that is not local. In other words, returns the smallest (*) known region fr1 that (a) outlives fr and (b) is not local. This cannot fail, because we will always find 'static at worst.

(*) If there are multiple competing choices, we pick the "postdominating" one. See TransitiveRelation::postdom_upper_bound for details.

🔬 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?

Finds a "lower bound" for fr that is not local. In other words, returns the largest (*) known region fr1 that (a) is outlived by fr and (b) is not local. This cannot fail, because we will always find 'static at worst.

(*) If there are multiple competing choices, we pick the "postdominating" one. See TransitiveRelation::postdom_upper_bound for details.

🔬 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?

Helper for non_local_upper_bound and non_local_lower_bound. Repeatedly invokes postdom_parent until we find something that is not local. Returns None if we never do so.

🔬 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?

True if fr1 is known to outlive fr2.

This will only ever be true for universally quantified regions.

Important traits for Vec<u8>

🔬 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?

Returns a vector of free regions x such that fr1: x is known to hold.

Trait Implementations

impl<'tcx> Debug for UniversalRegionRelations<'tcx>
[src]

Formats the value using the given formatter. Read more

impl<'tcx> FreeRegionRelations<'tcx> for UniversalRegionRelations<'tcx>
[src]

This trait is used by the impl-trait constraint code to abstract over the FreeRegionMap from lexical regions and UniversalRegions (from NLL)`.

🔬 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?

Tests whether r_a <= r_b. Both must be free regions or 'static. Read more

Auto Trait Implementations

impl<'tcx> !Send for UniversalRegionRelations<'tcx>

impl<'tcx> !Sync for UniversalRegionRelations<'tcx>

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Important traits for &'a mut R

Immutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Important traits for &'a mut R

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<E> SpecializationError for E
[src]

🔬 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?

Create an error for a missing method specialization. Defaults to panicking with type, trait & method names. S is the encoder/decoder state type, T is the type being encoded/decoded, and the arguments are the names of the trait and method that should've been overridden. Read more

impl<T> Erased for T
[src]

impl<T> Send for T where
    T: ?Sized
[src]

impl<T> Sync for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> MaybeResult for T
[src]

🔬 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?

🔬 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?

impl<'a, T> Captures for T where
    T: ?Sized
[src]