struct ReferenceVisitor {
counter: usize,
lifetimes: Vec<ArgLifetime>,
self_receiver: bool,
self_receiver_new_lifetime: bool,
self_lifetime: Option<Lifetime>,
}
Fields§
§counter: usize
§lifetimes: Vec<ArgLifetime>
§self_receiver: bool
§self_receiver_new_lifetime: bool
§self_lifetime: Option<Lifetime>
Trait Implementations§
source§impl Default for ReferenceVisitor
impl Default for ReferenceVisitor
source§fn default() -> ReferenceVisitor
fn default() -> ReferenceVisitor
Returns the “default value” for a type. Read more
source§impl VisitMut for ReferenceVisitor
impl VisitMut for ReferenceVisitor
fn visit_receiver_mut(&mut self, receiver: &mut Receiver)
fn visit_type_reference_mut(&mut self, argument: &mut TypeReference)
fn visit_abi_mut(&mut self, i: &mut Abi)
fn visit_angle_bracketed_generic_arguments_mut( &mut self, i: &mut AngleBracketedGenericArguments, )
fn visit_arm_mut(&mut self, i: &mut Arm)
fn visit_assoc_const_mut(&mut self, i: &mut AssocConst)
fn visit_assoc_type_mut(&mut self, i: &mut AssocType)
fn visit_attr_style_mut(&mut self, i: &mut AttrStyle)
fn visit_attribute_mut(&mut self, i: &mut Attribute)
fn visit_attributes_mut(&mut self, i: &mut Vec<Attribute>)
fn visit_bare_fn_arg_mut(&mut self, i: &mut BareFnArg)
fn visit_bare_variadic_mut(&mut self, i: &mut BareVariadic)
fn visit_bin_op_mut(&mut self, i: &mut BinOp)
fn visit_block_mut(&mut self, i: &mut Block)
fn visit_bound_lifetimes_mut(&mut self, i: &mut BoundLifetimes)
fn visit_captured_param_mut(&mut self, i: &mut CapturedParam)
fn visit_const_param_mut(&mut self, i: &mut ConstParam)
fn visit_constraint_mut(&mut self, i: &mut Constraint)
fn visit_data_mut(&mut self, i: &mut Data)
fn visit_data_enum_mut(&mut self, i: &mut DataEnum)
fn visit_data_struct_mut(&mut self, i: &mut DataStruct)
fn visit_data_union_mut(&mut self, i: &mut DataUnion)
fn visit_derive_input_mut(&mut self, i: &mut DeriveInput)
fn visit_expr_mut(&mut self, i: &mut Expr)
fn visit_expr_array_mut(&mut self, i: &mut ExprArray)
fn visit_expr_assign_mut(&mut self, i: &mut ExprAssign)
fn visit_expr_async_mut(&mut self, i: &mut ExprAsync)
fn visit_expr_await_mut(&mut self, i: &mut ExprAwait)
fn visit_expr_binary_mut(&mut self, i: &mut ExprBinary)
fn visit_expr_block_mut(&mut self, i: &mut ExprBlock)
fn visit_expr_break_mut(&mut self, i: &mut ExprBreak)
fn visit_expr_call_mut(&mut self, i: &mut ExprCall)
fn visit_expr_cast_mut(&mut self, i: &mut ExprCast)
fn visit_expr_closure_mut(&mut self, i: &mut ExprClosure)
fn visit_expr_const_mut(&mut self, i: &mut ExprConst)
fn visit_expr_continue_mut(&mut self, i: &mut ExprContinue)
fn visit_expr_field_mut(&mut self, i: &mut ExprField)
fn visit_expr_for_loop_mut(&mut self, i: &mut ExprForLoop)
fn visit_expr_group_mut(&mut self, i: &mut ExprGroup)
fn visit_expr_if_mut(&mut self, i: &mut ExprIf)
fn visit_expr_index_mut(&mut self, i: &mut ExprIndex)
fn visit_expr_infer_mut(&mut self, i: &mut ExprInfer)
fn visit_expr_let_mut(&mut self, i: &mut ExprLet)
fn visit_expr_lit_mut(&mut self, i: &mut ExprLit)
fn visit_expr_loop_mut(&mut self, i: &mut ExprLoop)
fn visit_expr_macro_mut(&mut self, i: &mut ExprMacro)
fn visit_expr_match_mut(&mut self, i: &mut ExprMatch)
fn visit_expr_method_call_mut(&mut self, i: &mut ExprMethodCall)
fn visit_expr_paren_mut(&mut self, i: &mut ExprParen)
fn visit_expr_path_mut(&mut self, i: &mut ExprPath)
fn visit_expr_range_mut(&mut self, i: &mut ExprRange)
fn visit_expr_raw_addr_mut(&mut self, i: &mut ExprRawAddr)
fn visit_expr_reference_mut(&mut self, i: &mut ExprReference)
fn visit_expr_repeat_mut(&mut self, i: &mut ExprRepeat)
fn visit_expr_return_mut(&mut self, i: &mut ExprReturn)
fn visit_expr_struct_mut(&mut self, i: &mut ExprStruct)
fn visit_expr_try_mut(&mut self, i: &mut ExprTry)
fn visit_expr_try_block_mut(&mut self, i: &mut ExprTryBlock)
fn visit_expr_tuple_mut(&mut self, i: &mut ExprTuple)
fn visit_expr_unary_mut(&mut self, i: &mut ExprUnary)
fn visit_expr_unsafe_mut(&mut self, i: &mut ExprUnsafe)
fn visit_expr_while_mut(&mut self, i: &mut ExprWhile)
fn visit_expr_yield_mut(&mut self, i: &mut ExprYield)
fn visit_field_mut(&mut self, i: &mut Field)
fn visit_field_mutability_mut(&mut self, i: &mut FieldMutability)
fn visit_field_pat_mut(&mut self, i: &mut FieldPat)
fn visit_field_value_mut(&mut self, i: &mut FieldValue)
fn visit_fields_mut(&mut self, i: &mut Fields)
fn visit_fields_named_mut(&mut self, i: &mut FieldsNamed)
fn visit_fields_unnamed_mut(&mut self, i: &mut FieldsUnnamed)
fn visit_file_mut(&mut self, i: &mut File)
fn visit_fn_arg_mut(&mut self, i: &mut FnArg)
fn visit_foreign_item_mut(&mut self, i: &mut ForeignItem)
fn visit_foreign_item_fn_mut(&mut self, i: &mut ForeignItemFn)
fn visit_foreign_item_macro_mut(&mut self, i: &mut ForeignItemMacro)
fn visit_foreign_item_static_mut(&mut self, i: &mut ForeignItemStatic)
fn visit_foreign_item_type_mut(&mut self, i: &mut ForeignItemType)
fn visit_generic_argument_mut(&mut self, i: &mut GenericArgument)
fn visit_generic_param_mut(&mut self, i: &mut GenericParam)
fn visit_generics_mut(&mut self, i: &mut Generics)
fn visit_ident_mut(&mut self, i: &mut Ident)
fn visit_impl_item_mut(&mut self, i: &mut ImplItem)
fn visit_impl_item_const_mut(&mut self, i: &mut ImplItemConst)
fn visit_impl_item_fn_mut(&mut self, i: &mut ImplItemFn)
fn visit_impl_item_macro_mut(&mut self, i: &mut ImplItemMacro)
fn visit_impl_item_type_mut(&mut self, i: &mut ImplItemType)
fn visit_impl_restriction_mut(&mut self, i: &mut ImplRestriction)
fn visit_index_mut(&mut self, i: &mut Index)
fn visit_item_mut(&mut self, i: &mut Item)
fn visit_item_const_mut(&mut self, i: &mut ItemConst)
fn visit_item_enum_mut(&mut self, i: &mut ItemEnum)
fn visit_item_extern_crate_mut(&mut self, i: &mut ItemExternCrate)
fn visit_item_fn_mut(&mut self, i: &mut ItemFn)
fn visit_item_foreign_mod_mut(&mut self, i: &mut ItemForeignMod)
fn visit_item_impl_mut(&mut self, i: &mut ItemImpl)
fn visit_item_macro_mut(&mut self, i: &mut ItemMacro)
fn visit_item_mod_mut(&mut self, i: &mut ItemMod)
fn visit_item_static_mut(&mut self, i: &mut ItemStatic)
fn visit_item_struct_mut(&mut self, i: &mut ItemStruct)
fn visit_item_trait_mut(&mut self, i: &mut ItemTrait)
fn visit_item_trait_alias_mut(&mut self, i: &mut ItemTraitAlias)
fn visit_item_type_mut(&mut self, i: &mut ItemType)
fn visit_item_union_mut(&mut self, i: &mut ItemUnion)
fn visit_item_use_mut(&mut self, i: &mut ItemUse)
fn visit_label_mut(&mut self, i: &mut Label)
fn visit_lifetime_mut(&mut self, i: &mut Lifetime)
fn visit_lifetime_param_mut(&mut self, i: &mut LifetimeParam)
fn visit_lit_mut(&mut self, i: &mut Lit)
fn visit_lit_bool_mut(&mut self, i: &mut LitBool)
fn visit_lit_byte_mut(&mut self, i: &mut LitByte)
fn visit_lit_byte_str_mut(&mut self, i: &mut LitByteStr)
fn visit_lit_cstr_mut(&mut self, i: &mut LitCStr)
fn visit_lit_char_mut(&mut self, i: &mut LitChar)
fn visit_lit_float_mut(&mut self, i: &mut LitFloat)
fn visit_lit_int_mut(&mut self, i: &mut LitInt)
fn visit_lit_str_mut(&mut self, i: &mut LitStr)
fn visit_local_mut(&mut self, i: &mut Local)
fn visit_local_init_mut(&mut self, i: &mut LocalInit)
fn visit_macro_mut(&mut self, i: &mut Macro)
fn visit_macro_delimiter_mut(&mut self, i: &mut MacroDelimiter)
fn visit_member_mut(&mut self, i: &mut Member)
fn visit_meta_mut(&mut self, i: &mut Meta)
fn visit_meta_list_mut(&mut self, i: &mut MetaList)
fn visit_meta_name_value_mut(&mut self, i: &mut MetaNameValue)
fn visit_parenthesized_generic_arguments_mut( &mut self, i: &mut ParenthesizedGenericArguments, )
fn visit_pat_mut(&mut self, i: &mut Pat)
fn visit_pat_ident_mut(&mut self, i: &mut PatIdent)
fn visit_pat_or_mut(&mut self, i: &mut PatOr)
fn visit_pat_paren_mut(&mut self, i: &mut PatParen)
fn visit_pat_reference_mut(&mut self, i: &mut PatReference)
fn visit_pat_rest_mut(&mut self, i: &mut PatRest)
fn visit_pat_slice_mut(&mut self, i: &mut PatSlice)
fn visit_pat_struct_mut(&mut self, i: &mut PatStruct)
fn visit_pat_tuple_mut(&mut self, i: &mut PatTuple)
fn visit_pat_tuple_struct_mut(&mut self, i: &mut PatTupleStruct)
fn visit_pat_type_mut(&mut self, i: &mut PatType)
fn visit_pat_wild_mut(&mut self, i: &mut PatWild)
fn visit_path_mut(&mut self, i: &mut Path)
fn visit_path_arguments_mut(&mut self, i: &mut PathArguments)
fn visit_path_segment_mut(&mut self, i: &mut PathSegment)
fn visit_pointer_mutability_mut(&mut self, i: &mut PointerMutability)
fn visit_precise_capture_mut(&mut self, i: &mut PreciseCapture)
fn visit_predicate_lifetime_mut(&mut self, i: &mut PredicateLifetime)
fn visit_predicate_type_mut(&mut self, i: &mut PredicateType)
fn visit_qself_mut(&mut self, i: &mut QSelf)
fn visit_range_limits_mut(&mut self, i: &mut RangeLimits)
fn visit_return_type_mut(&mut self, i: &mut ReturnType)
fn visit_signature_mut(&mut self, i: &mut Signature)
fn visit_span_mut(&mut self, i: &mut Span)
fn visit_static_mutability_mut(&mut self, i: &mut StaticMutability)
fn visit_stmt_mut(&mut self, i: &mut Stmt)
fn visit_stmt_macro_mut(&mut self, i: &mut StmtMacro)
fn visit_trait_bound_mut(&mut self, i: &mut TraitBound)
fn visit_trait_bound_modifier_mut(&mut self, i: &mut TraitBoundModifier)
fn visit_trait_item_mut(&mut self, i: &mut TraitItem)
fn visit_trait_item_const_mut(&mut self, i: &mut TraitItemConst)
fn visit_trait_item_fn_mut(&mut self, i: &mut TraitItemFn)
fn visit_trait_item_macro_mut(&mut self, i: &mut TraitItemMacro)
fn visit_trait_item_type_mut(&mut self, i: &mut TraitItemType)
fn visit_type_mut(&mut self, i: &mut Type)
fn visit_type_array_mut(&mut self, i: &mut TypeArray)
fn visit_type_bare_fn_mut(&mut self, i: &mut TypeBareFn)
fn visit_type_group_mut(&mut self, i: &mut TypeGroup)
fn visit_type_impl_trait_mut(&mut self, i: &mut TypeImplTrait)
fn visit_type_infer_mut(&mut self, i: &mut TypeInfer)
fn visit_type_macro_mut(&mut self, i: &mut TypeMacro)
fn visit_type_never_mut(&mut self, i: &mut TypeNever)
fn visit_type_param_mut(&mut self, i: &mut TypeParam)
fn visit_type_param_bound_mut(&mut self, i: &mut TypeParamBound)
fn visit_type_paren_mut(&mut self, i: &mut TypeParen)
fn visit_type_path_mut(&mut self, i: &mut TypePath)
fn visit_type_ptr_mut(&mut self, i: &mut TypePtr)
fn visit_type_slice_mut(&mut self, i: &mut TypeSlice)
fn visit_type_trait_object_mut(&mut self, i: &mut TypeTraitObject)
fn visit_type_tuple_mut(&mut self, i: &mut TypeTuple)
fn visit_un_op_mut(&mut self, i: &mut UnOp)
fn visit_use_glob_mut(&mut self, i: &mut UseGlob)
fn visit_use_group_mut(&mut self, i: &mut UseGroup)
fn visit_use_name_mut(&mut self, i: &mut UseName)
fn visit_use_path_mut(&mut self, i: &mut UsePath)
fn visit_use_rename_mut(&mut self, i: &mut UseRename)
fn visit_use_tree_mut(&mut self, i: &mut UseTree)
fn visit_variadic_mut(&mut self, i: &mut Variadic)
fn visit_variant_mut(&mut self, i: &mut Variant)
fn visit_vis_restricted_mut(&mut self, i: &mut VisRestricted)
fn visit_visibility_mut(&mut self, i: &mut Visibility)
fn visit_where_clause_mut(&mut self, i: &mut WhereClause)
fn visit_where_predicate_mut(&mut self, i: &mut WherePredicate)
Auto Trait Implementations§
impl Freeze for ReferenceVisitor
impl RefUnwindSafe for ReferenceVisitor
impl !Send for ReferenceVisitor
impl !Sync for ReferenceVisitor
impl Unpin for ReferenceVisitor
impl UnwindSafe for ReferenceVisitor
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more