Enum rustc_mir::borrow_check::nll::universal_regions::DefiningTy [−][src]
pub enum DefiningTy<'tcx> { Closure(DefId, ClosureSubsts<'tcx>), Generator(DefId, GeneratorSubsts<'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
Closure(DefId, ClosureSubsts<'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 MIR is a closure. The signature is found via
ClosureSubsts::closure_sig_ty
.
Generator(DefId, GeneratorSubsts<'tcx>, GeneratorMovability)
🔬 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
.
FnDef(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 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.
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 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> Copy for DefiningTy<'tcx>
impl<'tcx> Clone for DefiningTy<'tcx>
[src]
impl<'tcx> Clone for DefiningTy<'tcx>
fn clone(&self) -> DefiningTy<'tcx>
[src]
fn clone(&self) -> DefiningTy<'tcx>
Returns 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<'tcx> Debug for DefiningTy<'tcx>
[src]
impl<'tcx> Debug for DefiningTy<'tcx>
Auto Trait Implementations
impl<'tcx> !Send for DefiningTy<'tcx>
impl<'tcx> !Send for DefiningTy<'tcx>
impl<'tcx> !Sync for DefiningTy<'tcx>
impl<'tcx> !Sync for DefiningTy<'tcx>