Struct rustc_typeck::variance::terms::TermsContext [−][src]
pub struct TermsContext<'a, 'tcx: 'a> {
pub tcx: TyCtxt<'a, 'tcx, 'tcx>,
pub arena: &'a TypedArena<VarianceTerm<'a>>,
pub lang_items: Vec<(NodeId, Vec<Variance>)>,
pub inferred_starts: NodeMap<InferredIndex>,
pub inferred_terms: Vec<&'a VarianceTerm<'a>>,
}🔬 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
tcx: TyCtxt<'a, '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?
arena: &'a TypedArena<VarianceTerm<'a>>
🔬 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?
lang_items: Vec<(NodeId, Vec<Variance>)>
🔬 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?
inferred_starts: NodeMap<InferredIndex>
🔬 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?
inferred_terms: Vec<&'a VarianceTerm<'a>>
🔬 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<'a, 'tcx> TermsContext<'a, 'tcx>[src]
impl<'a, 'tcx> TermsContext<'a, 'tcx>fn add_inferreds_for_item(&mut self, id: NodeId)[src]
fn add_inferreds_for_item(&mut self, id: NodeId)🔬 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<'a, 'tcx, 'v> ItemLikeVisitor<'v> for TermsContext<'a, 'tcx>[src]
impl<'a, 'tcx, 'v> ItemLikeVisitor<'v> for TermsContext<'a, 'tcx>fn visit_item(&mut self, item: &Item)[src]
fn visit_item(&mut self, item: &Item)🔬 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?
fn visit_trait_item(&mut self, trait_item: &TraitItem)[src]
fn visit_trait_item(&mut self, trait_item: &TraitItem)🔬 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?
fn visit_impl_item(&mut self, impl_item: &ImplItem)[src]
fn visit_impl_item(&mut self, impl_item: &ImplItem)🔬 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?
Auto Trait Implementations
impl<'a, 'tcx> !Send for TermsContext<'a, 'tcx>
impl<'a, 'tcx> !Send for TermsContext<'a, 'tcx>impl<'a, 'tcx> !Sync for TermsContext<'a, 'tcx>
impl<'a, 'tcx> !Sync for TermsContext<'a, 'tcx>