pub struct IdVisitor<'a, O: 'a> {
pub operation: &'a mut O,
pub pass_through_items: bool,
pub visited_outermost: bool,
}
A visitor that applies its operation to all of the node IDs
in a visitable thing.
Fields
operation | |
pass_through_items | |
visited_outermost | |
Trait Implementations
fn visit_pat(&mut self, pattern: &Pat)
fn visit_expr(&mut self, expression: &Expr)
fn visit_ty(&mut self, typ: &Ty)
fn visit_fn(&mut self, function_kind: FnKind<'v>, function_declaration: &'v FnDecl, block: &'v Block, span: Span, node_id: NodeId)
fn visit_mac(&mut self, _mac: &'v Mac)
fn visit_qpath(&mut self, qpath_span: Span, qpath: &'v QPath)
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).