Enum rustc_mir::borrow_check::nll::universal_regions::DefiningTy[][src]

pub enum DefiningTy<'tcx> {
    Closure(DefIdClosureSubsts<'tcx>),
    Generator(DefIdGeneratorSubsts<'tcx>, GeneratorMovability),
    FnDef(DefId, &'tcx Substs<'tcx>),
    Const(DefId, &'tcx Substs<'tcx>),
}
🔬 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 "defining type" for this MIR. The key feature of the "defining type" is that it contains the information needed to derive all the universal regions that are in scope as well as the types of the inputs/output from the MIR. In general, early-bound universal regions appear free in the defining type and late-bound regions appear bound in the signature.

Variants

🔬 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 MIR is a closure. The signature is found via ClosureSubsts::closure_sig_ty.

🔬 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 MIR is a generator. The signature is that generators take no parameters and return the result of ClosureSubsts::generator_return_ty.

🔬 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 MIR is a fn item with the given def-id and substs. The signature of the function can be bound then with the fn_sig query.

🔬 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 MIR represents some form of constant. The signature then is that it has no inputs and a single return value, which is the value of the constant.

Trait Implementations

impl<'tcx> Copy for DefiningTy<'tcx>
[src]

impl<'tcx> Clone for DefiningTy<'tcx>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

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

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