Struct rustc_const_eval::check_match::MatchCheckCtxt
[−]
[src]
pub struct MatchCheckCtxt<'a, 'tcx: 'a> { pub tcx: TyCtxt<'a, 'tcx, 'tcx>, pub param_env: ParameterEnvironment<'tcx>, }
Unstable (
rustc_private
)Fields
tcx: TyCtxt<'a, 'tcx, 'tcx>
Unstable (
rustc_private
)param_env: ParameterEnvironment<'tcx>
Unstable (
rustc_private
)Trait Implementations
impl<'a, 'tcx, 'v> Visitor<'v> for MatchCheckCtxt<'a, 'tcx>
[src]
fn visit_expr(&mut self, ex: &Expr)
fn visit_local(&mut self, l: &Local)
fn visit_fn(&mut self, fk: FnKind<'v>, fd: &'v FnDecl, b: &'v Block, s: Span, n: NodeId)
fn visit_nested_item(&mut self, id: ItemId)
Invoked when a nested item is encountered. By default, does nothing. If you want a deep walk, you need to override to fetch the item contents. But most of the time, it is easier (and better) to invoke Crate::visit_all_items
, which visits all items in the crate in some order (but doesn't respect nesting). Read more
fn visit_item(&mut self, i: &'v Item)
Visit the top-level item and (optionally) nested items. See visit_nested_item
for details. Read more