Enum rustc::ty::UpvarSubsts [−][src]
pub enum UpvarSubsts<'tcx> {
Closure(ClosureSubsts<'tcx>),
Generator(GeneratorSubsts<'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?
Variants
Closure(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?
Generator(GeneratorSubsts<'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?
Methods
impl<'tcx> UpvarSubsts<'tcx>[src]
impl<'tcx> UpvarSubsts<'tcx>pub fn upvar_tys(
self,
def_id: DefId,
tcx: TyCtxt
) -> impl Iterator<Item = Ty<'tcx>> + 'tcx[src]
pub fn upvar_tys(
self,
def_id: DefId,
tcx: TyCtxt
) -> impl Iterator<Item = Ty<'tcx>> + '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?
Trait Implementations
impl<'tcx> Debug for UpvarSubsts<'tcx>[src]
impl<'tcx> Debug for UpvarSubsts<'tcx>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'tcx> Copy for UpvarSubsts<'tcx>[src]
impl<'tcx> Copy for UpvarSubsts<'tcx>impl<'tcx> Clone for UpvarSubsts<'tcx>[src]
impl<'tcx> Clone for UpvarSubsts<'tcx>fn clone(&self) -> UpvarSubsts<'tcx>[src]
fn clone(&self) -> UpvarSubsts<'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)1.0.0
[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl<'tcx> !Send for UpvarSubsts<'tcx>
impl<'tcx> !Send for UpvarSubsts<'tcx>impl<'tcx> !Sync for UpvarSubsts<'tcx>
impl<'tcx> !Sync for UpvarSubsts<'tcx>