Struct rustc::hir::intravisit::IdVisitor
[−]
[src]
pub struct IdVisitor<'a, O: 'a> { // some fields omitted }
Unstable (
rustc_private
)Methods
impl<'a, O: IdVisitingOperation> IdVisitor<'a, O>
[src]
Trait Implementations
impl<'a, 'v, O: IdVisitingOperation> Visitor<'v> for IdVisitor<'a, O>
[src]
fn visit_mod(&mut self, module: &Mod, _: Span, node_id: NodeId)
fn visit_foreign_item(&mut self, foreign_item: &ForeignItem)
fn visit_item(&mut self, item: &Item)
Visit the top-level item and (optionally) nested items. See visit_nested_item
for details. Read more
fn visit_local(&mut self, local: &Local)
fn visit_block(&mut self, block: &Block)
fn visit_stmt(&mut self, statement: &Stmt)
fn visit_pat(&mut self, pattern: &Pat)
fn visit_expr(&mut self, expression: &Expr)
fn visit_ty(&mut self, typ: &Ty)
fn visit_generics(&mut self, generics: &Generics)
fn visit_fn(&mut self, function_kind: FnKind<'v>, function_declaration: &'v FnDecl, block: &'v Block, span: Span, node_id: NodeId)
fn visit_struct_field(&mut self, struct_field: &StructField)
fn visit_variant_data(&mut self, struct_def: &VariantData, _: Name, _: &Generics, _: NodeId, _: Span)
fn visit_trait_item(&mut self, ti: &TraitItem)
fn visit_impl_item(&mut self, ii: &ImplItem)
fn visit_lifetime(&mut self, lifetime: &Lifetime)
fn visit_lifetime_def(&mut self, def: &LifetimeDef)
fn visit_trait_ref(&mut self, trait_ref: &TraitRef)
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