Skip to main content

BinderVisitor

Struct BinderVisitor 

Source
pub struct BinderVisitor<'tcx> { /* private fields */ }
Expand description

Visitor for resolving symbol bindings and establishing relationships.

Trait Implementations§

Source§

impl<'tcx> AstVisitorRust<'tcx, BinderScopes<'tcx>> for BinderVisitor<'tcx>

Source§

fn visit_source_file( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, _namespace: &'tcx Scope<'tcx>, _parent: Option<&Symbol>, )

Source§

fn visit_identifier( &mut self, _unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, _namespace: &'tcx Scope<'tcx>, _parent: Option<&Symbol>, )

Source§

fn visit_type_identifier( &mut self, _unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, _namespace: &'tcx Scope<'tcx>, _parent: Option<&Symbol>, )

Source§

fn visit_primitive_type( &mut self, _unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, _namespace: &'tcx Scope<'tcx>, _parent: Option<&Symbol>, )

Source§

fn visit_type_parameter( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_block( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_mod_item( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_function_signature_item( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_function_item( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_field_identifier( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_struct_item( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_trait_item( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_field_declaration( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_impl_item( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, _namespace: &'tcx Scope<'tcx>, _parent: Option<&Symbol>, )

Source§

fn visit_call_expression( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_enum_item( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_macro_definition( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_macro_invocation( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_generic_type( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_const_item( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_static_item( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_type_item( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_array_type( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_tuple_type( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_abstract_type( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_enum_variant( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_field_expression( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_scoped_identifier( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_parameter( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_self_param( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_scoped_type_identifier( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_let_declaration( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_tuple_struct_pattern( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_struct_expression( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_match_expression( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_match_block( &mut self, unit: &CompileUnit<'tcx>, node: &HirNode<'tcx>, scopes: &mut BinderScopes<'tcx>, namespace: &'tcx Scope<'tcx>, parent: Option<&Symbol>, )

Source§

fn visit_node( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Visit a node, dispatching to the appropriate method based on token ID NOTE: scope stack is for lookup convenience, the actual namespace in which names should be mangled and declared. So namespace is semantic home scope for name resolution/mangling, independent of the push stack.
Source§

fn visit_children( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Visit all children of a node
Source§

fn visit_unknown( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Handle unknown/unrecognized token types
Source§

fn visit_Text_fn( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_LPAREN( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_RPAREN( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_LBRACE( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_RBRACE( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_let( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_EQ( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_SEMI( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_COLON( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_COMMA( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_ARROW( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_EQEQ( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_NE( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_LT( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_GT( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_LE( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_GE( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_AMPAMP( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_PIPEPIPE( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_PLUS( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_MINUS( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_STAR( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_SLASH( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_Text_PERCENT( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_attribute_item( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_inner_attribute_item( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_attribute( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_integer_literal( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_float_literal( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_string_literal( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_boolean_literal( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_char_literal( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_shorthand_field_identifier( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_ordered_field_declaration_list( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_self_keyword( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_parameters( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_visibility_modifier( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_enum_variant_list( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_associated_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_bounded_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_trait_bounds( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_lifetime( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_function_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_reference_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_pointer_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_tuple_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_struct_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_or_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_slice_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_reference_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_mut_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_ref_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_text_node( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_generic_type_with_turbofish( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_index_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_type_cast_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_const_parameter( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_where_clause( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_where_predicate( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_mutable_specifier( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_expression_statement( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_assignment_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_binary_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_operator( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_reference_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_try_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_await_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_parenthesized_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_arguments( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_if_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_while_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_loop_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_for_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_array_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_tuple_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_unit_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_range_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_unary_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_closure_expression( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_closure_parameters( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_super_token( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_crate_token( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_name( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_pattern( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_return_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_parameters( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_bounds( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_default_type( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_macro( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_body( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_left( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_right( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_operator( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_function( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_arguments( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_type_arguments( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_value( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_field( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_trait( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_element( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_length( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_consequence( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_argument( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_condition( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

fn visit_field_path( &mut self, unit: &CompileUnit<'a>, node: &HirNode<'a>, scopes: &mut T, namespace: &'a Scope<'a>, parent: Option<&Symbol>, )

Source§

impl<'tcx> Debug for BinderVisitor<'tcx>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'tcx> Freeze for BinderVisitor<'tcx>

§

impl<'tcx> RefUnwindSafe for BinderVisitor<'tcx>

§

impl<'tcx> Send for BinderVisitor<'tcx>

§

impl<'tcx> Sync for BinderVisitor<'tcx>

§

impl<'tcx> Unpin for BinderVisitor<'tcx>

§

impl<'tcx> UnsafeUnpin for BinderVisitor<'tcx>

§

impl<'tcx> UnwindSafe for BinderVisitor<'tcx>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more