mentat/syn/visit/trait.Visit.html

234 lines
62 KiB
HTML
Raw Permalink Normal View History

2018-08-22 17:04:13 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `Visit` trait in crate `syn`.">
<meta name="keywords" content="rust, rustlang, rust-lang, Visit">
<title>syn::visit::Visit - Rust</title>
<link rel="stylesheet" type="text/css" href="../../normalize.css">
<link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle">
<link rel="stylesheet" type="text/css" href="../../dark.css">
<link rel="stylesheet" type="text/css" href="../../main.css" id="themeStyle">
<script src="../../storage.js"></script>
</head>
<body class="rustdoc trait">
<!--[if lte IE 8]>
<div class="warning">
This old browser is unsupported and will most likely display funky
things.
</div>
<![endif]-->
<nav class="sidebar">
<div class="sidebar-menu">&#9776;</div>
<p class='location'>Trait Visit</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#provided-methods">Provided Methods</a><div class="sidebar-links"><a href="#method.visit_abi">visit_abi</a><a href="#method.visit_angle_bracketed_generic_arguments">visit_angle_bracketed_generic_arguments</a><a href="#method.visit_attr_style">visit_attr_style</a><a href="#method.visit_attribute">visit_attribute</a><a href="#method.visit_bare_fn_arg">visit_bare_fn_arg</a><a href="#method.visit_bare_fn_arg_name">visit_bare_fn_arg_name</a><a href="#method.visit_bin_op">visit_bin_op</a><a href="#method.visit_binding">visit_binding</a><a href="#method.visit_bound_lifetimes">visit_bound_lifetimes</a><a href="#method.visit_const_param">visit_const_param</a><a href="#method.visit_data">visit_data</a><a href="#method.visit_data_enum">visit_data_enum</a><a href="#method.visit_data_struct">visit_data_struct</a><a href="#method.visit_data_union">visit_data_union</a><a href="#method.visit_derive_input">visit_derive_input</a><a href="#method.visit_expr">visit_expr</a><a href="#method.visit_expr_binary">visit_expr_binary</a><a href="#method.visit_expr_call">visit_expr_call</a><a href="#method.visit_expr_cast">visit_expr_cast</a><a href="#method.visit_expr_field">visit_expr_field</a><a href="#method.visit_expr_index">visit_expr_index</a><a href="#method.visit_expr_lit">visit_expr_lit</a><a href="#method.visit_expr_paren">visit_expr_paren</a><a href="#method.visit_expr_path">visit_expr_path</a><a href="#method.visit_expr_unary">visit_expr_unary</a><a href="#method.visit_expr_verbatim">visit_expr_verbatim</a><a href="#method.visit_field">visit_field</a><a href="#method.visit_fields">visit_fields</a><a href="#method.visit_fields_named">visit_fields_named</a><a href="#method.visit_fields_unnamed">visit_fields_unnamed</a><a href="#method.visit_generic_argument">visit_generic_argument</a><a href="#method.visit_generic_param">visit_generic_param</a><a href="#method.visit_generics">visit_generics</a><a href="#method.visit_ident">visit_ident</a><a href="#method.visit_index">visit_index</a><a href="#method.visit_lifetime">visit_lifetime</a><a href="#method.visit_lifetime_def">visit_lifetime_def</a><a href="#method.visit_lit">visit_lit</a><a href="#method.visit_lit_bool">visit_lit_bool</a><a href="#method.visit_lit_byte">visit_lit_byte</a><a href="#method.visit_lit_byte_str">visit_lit_byte_str</a><a href="#method.visit_lit_char">visit_lit_char</a><a href="#method.visit_lit_float">visit_lit_float</a><a href="#method.visit_lit_int">visit_lit_int</a><a href="#method.visit_lit_str">visit_lit_str</a><a href="#method.visit_lit_verbatim">visit_lit_verbatim</a><a href="#method.visit_macro">visit_macro</a><a href="#method.visit_macro_delimiter">visit_macro_delimiter</a><a href="#method.visit_member">visit_member</a><a href="#method.visit_meta">visit_meta</a><a href="#method.visit_meta_list">visit_meta_list</a><a href="#method.visit_meta_name_value">visit_meta_name_value</a><a href="#method.visit_nested_meta">visit_nested_meta</a><a href="#method.visit_parenthesized_generic_arguments">visit_parenthesized_generic_arguments</a><a href="#method.visit_path">visit_path</a><a href="#method.visit_path_arguments">visit_path_arguments</a><a href="#method.visit_path_segment">visit_path_segment</a><a href="#method.visit_predicate_eq">visit_predicate_eq</a><a href="#method.visit_predicate_lifetime">visit_predicate_lifetime</a><a href="#method.visit_predicate_type">visit_predicate_type</a><a href="#method.visit_qself">visit_qself</a><a href="#method.visit_return_type">visit_return_type</a><a href="#method.visit_span">visit_span</a><a href="#method.visit_trait_bound">visit_trait_bound</a><a href="#method.visit_trait_bound_modifier">visit_trait_bound_modifier</a><a href="#method.visit_type">visit_type</a><a href="#method.visit_type_array">visit_type_array</a><a href="#method.visit_type_bare_fn">visit_type_bare_fn</a><a href="#method.visit_type_group">visit_type_group</a><a href="#method.visit_type_impl_trait">visit_type_impl_trait</a><a href="#met
</nav>
<div class="theme-picker">
<button id="theme-picker" aria-label="Pick another theme!">
<img src="../../brush.svg" width="18" alt="Pick another theme!">
</button>
<div id="theme-choices"></div>
</div>
<script src="../../theme.js"></script>
<nav class="sub">
<form class="search-form js-only">
<div class="search-container">
<input class="search-input" name="search"
autocomplete="off"
placeholder="Click or press S to search, ? for more options…"
type="search">
</div>
</form>
</nav>
<section id='main' class="content">
<h1 class='fqn'><span class='in-band'>Trait <a href='../index.html'>syn</a>::<wbr><a href='index.html'>visit</a>::<wbr><a class="trait" href=''>Visit</a></span><span class='out-of-band'><span id='render-detail'>
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
</span><a class='srclink' href='../../src/syn/gen/visit.rs.html#33-854' title='goto source code'>[src]</a></span></h1>
<pre class='rust trait'>pub trait Visit&lt;'ast&gt; {
fn <a href='#method.visit_abi' class='fnname'>visit_abi</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.Abi.html" title="struct syn::Abi">Abi</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_angle_bracketed_generic_arguments' class='fnname'>visit_angle_bracketed_generic_arguments</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i: &amp;'ast <a class="struct" href="../../syn/struct.AngleBracketedGenericArguments.html" title="struct syn::AngleBracketedGenericArguments">AngleBracketedGenericArguments</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_attr_style' class='fnname'>visit_attr_style</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.AttrStyle.html" title="enum syn::AttrStyle">AttrStyle</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_attribute' class='fnname'>visit_attribute</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.Attribute.html" title="struct syn::Attribute">Attribute</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_bare_fn_arg' class='fnname'>visit_bare_fn_arg</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.BareFnArg.html" title="struct syn::BareFnArg">BareFnArg</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_bare_fn_arg_name' class='fnname'>visit_bare_fn_arg_name</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.BareFnArgName.html" title="enum syn::BareFnArgName">BareFnArgName</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_bin_op' class='fnname'>visit_bin_op</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.BinOp.html" title="enum syn::BinOp">BinOp</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_binding' class='fnname'>visit_binding</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.Binding.html" title="struct syn::Binding">Binding</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_bound_lifetimes' class='fnname'>visit_bound_lifetimes</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.BoundLifetimes.html" title="struct syn::BoundLifetimes">BoundLifetimes</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_const_param' class='fnname'>visit_const_param</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.ConstParam.html" title="struct syn::ConstParam">ConstParam</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_data' class='fnname'>visit_data</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.Data.html" title="enum syn::Data">Data</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_data_enum' class='fnname'>visit_data_enum</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.DataEnum.html" title="struct syn::DataEnum">DataEnum</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_data_struct' class='fnname'>visit_data_struct</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.DataStruct.html" title="struct syn::DataStruct">DataStruct</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_data_union' class='fnname'>visit_data_union</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.DataUnion.html" title="struct syn::DataUnion">DataUnion</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_derive_input' class='fnname'>visit_derive_input</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.DeriveInput.html" title="struct syn::DeriveInput">DeriveInput</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_expr' class='fnname'>visit_expr</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.Expr.html" title="enum syn::Expr">Expr</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_expr_binary' class='fnname'>visit_expr_binary</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.ExprBinary.html" title="struct syn::ExprBinary">ExprBinary</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_expr_call' class='fnname'>visit_expr_call</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.ExprCall.html" title="struct syn::ExprCall">ExprCall</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_expr_cast' class='fnname'>visit_expr_cast</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.ExprCast.html" title="struct syn::ExprCast">ExprCast</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_expr_field' class='fnname'>visit_expr_field</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.ExprField.html" title="struct syn::ExprField">ExprField</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_expr_index' class='fnname'>visit_expr_index</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.ExprIndex.html" title="struct syn::ExprIndex">ExprIndex</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_expr_lit' class='fnname'>visit_expr_lit</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.ExprLit.html" title="struct syn::ExprLit">ExprLit</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_expr_paren' class='fnname'>visit_expr_paren</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.ExprParen.html" title="struct syn::ExprParen">ExprParen</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_expr_path' class='fnname'>visit_expr_path</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.ExprPath.html" title="struct syn::ExprPath">ExprPath</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_expr_unary' class='fnname'>visit_expr_unary</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.ExprUnary.html" title="struct syn::ExprUnary">ExprUnary</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_expr_verbatim' class='fnname'>visit_expr_verbatim</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.ExprVerbatim.html" title="struct syn::ExprVerbatim">ExprVerbatim</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_field' class='fnname'>visit_field</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.Field.html" title="struct syn::Field">Field</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_fields' class='fnname'>visit_fields</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.Fields.html" title="enum syn::Fields">Fields</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_fields_named' class='fnname'>visit_fields_named</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.FieldsNamed.html" title="struct syn::FieldsNamed">FieldsNamed</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_fields_unnamed' class='fnname'>visit_fields_unnamed</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.FieldsUnnamed.html" title="struct syn::FieldsUnnamed">FieldsUnnamed</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_generic_argument' class='fnname'>visit_generic_argument</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.GenericArgument.html" title="enum syn::GenericArgument">GenericArgument</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_generic_param' class='fnname'>visit_generic_param</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.GenericParam.html" title="enum syn::GenericParam">GenericParam</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_generics' class='fnname'>visit_generics</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.Generics.html" title="struct syn::Generics">Generics</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_ident' class='fnname'>visit_ident</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.Ident.html" title="struct syn::Ident">Ident</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_index' class='fnname'>visit_index</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.Index.html" title="struct syn::Index">Index</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_lifetime' class='fnname'>visit_lifetime</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.Lifetime.html" title="struct syn::Lifetime">Lifetime</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_lifetime_def' class='fnname'>visit_lifetime_def</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.LifetimeDef.html" title="struct syn::LifetimeDef">LifetimeDef</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_lit' class='fnname'>visit_lit</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.Lit.html" title="enum syn::Lit">Lit</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_lit_bool' class='fnname'>visit_lit_bool</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.LitBool.html" title="struct syn::LitBool">LitBool</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_lit_byte' class='fnname'>visit_lit_byte</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.LitByte.html" title="struct syn::LitByte">LitByte</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_lit_byte_str' class='fnname'>visit_lit_byte_str</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.LitByteStr.html" title="struct syn::LitByteStr">LitByteStr</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_lit_char' class='fnname'>visit_lit_char</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.LitChar.html" title="struct syn::LitChar">LitChar</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_lit_float' class='fnname'>visit_lit_float</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.LitFloat.html" title="struct syn::LitFloat">LitFloat</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_lit_int' class='fnname'>visit_lit_int</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.LitInt.html" title="struct syn::LitInt">LitInt</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_lit_str' class='fnname'>visit_lit_str</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.LitStr.html" title="struct syn::LitStr">LitStr</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_lit_verbatim' class='fnname'>visit_lit_verbatim</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.LitVerbatim.html" title="struct syn::LitVerbatim">LitVerbatim</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_macro' class='fnname'>visit_macro</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.Macro.html" title="struct syn::Macro">Macro</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_macro_delimiter' class='fnname'>visit_macro_delimiter</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.MacroDelimiter.html" title="enum syn::MacroDelimiter">MacroDelimiter</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_member' class='fnname'>visit_member</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.Member.html" title="enum syn::Member">Member</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_meta' class='fnname'>visit_meta</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.Meta.html" title="enum syn::Meta">Meta</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_meta_list' class='fnname'>visit_meta_list</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.MetaList.html" title="struct syn::MetaList">MetaList</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_meta_name_value' class='fnname'>visit_meta_name_value</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.MetaNameValue.html" title="struct syn::MetaNameValue">MetaNameValue</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_nested_meta' class='fnname'>visit_nested_meta</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.NestedMeta.html" title="enum syn::NestedMeta">NestedMeta</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_parenthesized_generic_arguments' class='fnname'>visit_parenthesized_generic_arguments</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i: &amp;'ast <a class="struct" href="../../syn/struct.ParenthesizedGenericArguments.html" title="struct syn::ParenthesizedGenericArguments">ParenthesizedGenericArguments</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_path' class='fnname'>visit_path</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.Path.html" title="struct syn::Path">Path</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_path_arguments' class='fnname'>visit_path_arguments</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.PathArguments.html" title="enum syn::PathArguments">PathArguments</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_path_segment' class='fnname'>visit_path_segment</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.PathSegment.html" title="struct syn::PathSegment">PathSegment</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_predicate_eq' class='fnname'>visit_predicate_eq</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.PredicateEq.html" title="struct syn::PredicateEq">PredicateEq</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_predicate_lifetime' class='fnname'>visit_predicate_lifetime</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.PredicateLifetime.html" title="struct syn::PredicateLifetime">PredicateLifetime</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_predicate_type' class='fnname'>visit_predicate_type</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.PredicateType.html" title="struct syn::PredicateType">PredicateType</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_qself' class='fnname'>visit_qself</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.QSelf.html" title="struct syn::QSelf">QSelf</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_return_type' class='fnname'>visit_return_type</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.ReturnType.html" title="enum syn::ReturnType">ReturnType</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_span' class='fnname'>visit_span</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../proc_macro2/struct.Span.html" title="struct proc_macro2::Span">Span</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_trait_bound' class='fnname'>visit_trait_bound</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.TraitBound.html" title="struct syn::TraitBound">TraitBound</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_trait_bound_modifier' class='fnname'>visit_trait_bound_modifier</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.TraitBoundModifier.html" title="enum syn::TraitBoundModifier">TraitBoundModifier</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_type' class='fnname'>visit_type</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.Type.html" title="enum syn::Type">Type</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_type_array' class='fnname'>visit_type_array</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.TypeArray.html" title="struct syn::TypeArray">TypeArray</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_type_bare_fn' class='fnname'>visit_type_bare_fn</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.TypeBareFn.html" title="struct syn::TypeBareFn">TypeBareFn</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_type_group' class='fnname'>visit_type_group</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.TypeGroup.html" title="struct syn::TypeGroup">TypeGroup</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_type_impl_trait' class='fnname'>visit_type_impl_trait</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.TypeImplTrait.html" title="struct syn::TypeImplTrait">TypeImplTrait</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_type_infer' class='fnname'>visit_type_infer</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.TypeInfer.html" title="struct syn::TypeInfer">TypeInfer</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_type_macro' class='fnname'>visit_type_macro</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.TypeMacro.html" title="struct syn::TypeMacro">TypeMacro</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_type_never' class='fnname'>visit_type_never</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.TypeNever.html" title="struct syn::TypeNever">TypeNever</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_type_param' class='fnname'>visit_type_param</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.TypeParam.html" title="struct syn::TypeParam">TypeParam</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_type_param_bound' class='fnname'>visit_type_param_bound</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.TypeParamBound.html" title="enum syn::TypeParamBound">TypeParamBound</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_type_paren' class='fnname'>visit_type_paren</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.TypeParen.html" title="struct syn::TypeParen">TypeParen</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_type_path' class='fnname'>visit_type_path</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.TypePath.html" title="struct syn::TypePath">TypePath</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_type_ptr' class='fnname'>visit_type_ptr</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.TypePtr.html" title="struct syn::TypePtr">TypePtr</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_type_reference' class='fnname'>visit_type_reference</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.TypeReference.html" title="struct syn::TypeReference">TypeReference</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_type_slice' class='fnname'>visit_type_slice</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.TypeSlice.html" title="struct syn::TypeSlice">TypeSlice</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_type_trait_object' class='fnname'>visit_type_trait_object</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.TypeTraitObject.html" title="struct syn::TypeTraitObject">TypeTraitObject</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_type_tuple' class='fnname'>visit_type_tuple</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.TypeTuple.html" title="struct syn::TypeTuple">TypeTuple</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_type_verbatim' class='fnname'>visit_type_verbatim</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.TypeVerbatim.html" title="struct syn::TypeVerbatim">TypeVerbatim</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_un_op' class='fnname'>visit_un_op</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.UnOp.html" title="enum syn::UnOp">UnOp</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_variant' class='fnname'>visit_variant</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.Variant.html" title="struct syn::Variant">Variant</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_vis_crate' class='fnname'>visit_vis_crate</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.VisCrate.html" title="struct syn::VisCrate">VisCrate</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_vis_public' class='fnname'>visit_vis_public</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.VisPublic.html" title="struct syn::VisPublic">VisPublic</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_vis_restricted' class='fnname'>visit_vis_restricted</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.VisRestricted.html" title="struct syn::VisRestricted">VisRestricted</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_visibility' class='fnname'>visit_visibility</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.Visibility.html" title="enum syn::Visibility">Visibility</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_where_clause' class='fnname'>visit_where_clause</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.WhereClause.html" title="struct syn::WhereClause">WhereClause</a>) { ... }
<div class='item-spacer'></div> fn <a href='#method.visit_where_predicate' class='fnname'>visit_where_predicate</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.WherePredicate.html" title="enum syn::WherePredicate">WherePredicate</a>) { ... }
}</pre><div class='docblock'><p>Syntax tree traversal to walk a shared borrow of a syntax tree.</p>
<p>See the <a href="index.html">module documentation</a> for details.</p>
<p><em>This trait is available if Syn is built with the <code>&quot;visit&quot;</code> feature.</em></p>
</div>
<h2 id='provided-methods' class='small-section-header'>
Provided Methods<a href='#provided-methods' class='anchor'></a>
</h2>
<div class='methods'>
<h3 id='method.visit_abi' class='method'><span id='visit_abi.v' class='invisible'><code>fn <a href='#method.visit_abi' class='fnname'>visit_abi</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.Abi.html" title="struct syn::Abi">Abi</a>)</code></span></h3><h3 id='method.visit_angle_bracketed_generic_arguments' class='method'><span id='visit_angle_bracketed_generic_arguments.v' class='invisible'><code>fn <a href='#method.visit_angle_bracketed_generic_arguments' class='fnname'>visit_angle_bracketed_generic_arguments</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;i: &amp;'ast <a class="struct" href="../../syn/struct.AngleBracketedGenericArguments.html" title="struct syn::AngleBracketedGenericArguments">AngleBracketedGenericArguments</a><br>)</code></span></h3><h3 id='method.visit_attr_style' class='method'><span id='visit_attr_style.v' class='invisible'><code>fn <a href='#method.visit_attr_style' class='fnname'>visit_attr_style</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.AttrStyle.html" title="enum syn::AttrStyle">AttrStyle</a>)</code></span></h3><h3 id='method.visit_attribute' class='method'><span id='visit_attribute.v' class='invisible'><code>fn <a href='#method.visit_attribute' class='fnname'>visit_attribute</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.Attribute.html" title="struct syn::Attribute">Attribute</a>)</code></span></h3><h3 id='method.visit_bare_fn_arg' class='method'><span id='visit_bare_fn_arg.v' class='invisible'><code>fn <a href='#method.visit_bare_fn_arg' class='fnname'>visit_bare_fn_arg</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.BareFnArg.html" title="struct syn::BareFnArg">BareFnArg</a>)</code></span></h3><h3 id='method.visit_bare_fn_arg_name' class='method'><span id='visit_bare_fn_arg_name.v' class='invisible'><code>fn <a href='#method.visit_bare_fn_arg_name' class='fnname'>visit_bare_fn_arg_name</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.BareFnArgName.html" title="enum syn::BareFnArgName">BareFnArgName</a>)</code></span></h3><h3 id='method.visit_bin_op' class='method'><span id='visit_bin_op.v' class='invisible'><code>fn <a href='#method.visit_bin_op' class='fnname'>visit_bin_op</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.BinOp.html" title="enum syn::BinOp">BinOp</a>)</code></span></h3><h3 id='method.visit_binding' class='method'><span id='visit_binding.v' class='invisible'><code>fn <a href='#method.visit_binding' class='fnname'>visit_binding</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.Binding.html" title="struct syn::Binding">Binding</a>)</code></span></h3><h3 id='method.visit_bound_lifetimes' class='method'><span id='visit_bound_lifetimes.v' class='invisible'><code>fn <a href='#method.visit_bound_lifetimes' class='fnname'>visit_bound_lifetimes</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.BoundLifetimes.html" title="struct syn::BoundLifetimes">BoundLifetimes</a>)</code></span></h3><h3 id='method.visit_const_param' class='method'><span id='visit_const_param.v' class='invisible'><code>fn <a href='#method.visit_const_param' class='fnname'>visit_const_param</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.ConstParam.html" title="struct syn::ConstParam">ConstParam</a>)</code></span></h3><h3 id='method.visit_data' class='method'><span id='visit_data.v' class='invisible'><code>fn <a href='#method.visit_data' class='fnname'>visit_data</a>(&amp;mut self, i: &amp;'ast <a class="enum" href="../../syn/enum.Data.html" title="enum syn::Data">Data</a>)</code></span></h3><h3 id='method.visit_data_enum' class='method'><span id='visit_data_enum.v' class='invisible'><code>fn <a href='#method.visit_data_enum' class='fnname'>visit_data_enum</a>(&amp;mut self, i: &amp;'ast <a class="struct" href="../../syn/struct.DataEnum.html" title="struct syn::DataEnum">DataEnum</a>)</code></span></h3><h3 id='method.visit_data_struct' class='method'><span id='visit_dat
<h2 id='implementors' class='small-section-header'>
Implementors<a href='#implementors' class='anchor'></a>
</h2>
<ul class='item-list' id='implementors-list'>
</ul><script type="text/javascript" async
src="../../implementors/syn/visit/trait.Visit.js">
</script></section>
<section id='search' class="content hidden"></section>
<section class="footer"></section>
<aside id="help" class="hidden">
<div>
<h1 class="hidden">Help</h1>
<div class="shortcuts">
<h2>Keyboard Shortcuts</h2>
<dl>
<dt><kbd>?</kbd></dt>
<dd>Show this help dialog</dd>
<dt><kbd>S</kbd></dt>
<dd>Focus the search field</dd>
<dt><kbd></kbd></dt>
<dd>Move up in search results</dd>
<dt><kbd></kbd></dt>
<dd>Move down in search results</dd>
<dt><kbd></kbd></dt>
<dd>Switch tab</dd>
<dt><kbd>&#9166;</kbd></dt>
<dd>Go to active search result</dd>
<dt><kbd>+</kbd></dt>
<dd>Expand all sections</dd>
<dt><kbd>-</kbd></dt>
<dd>Collapse all sections</dd>
</dl>
</div>
<div class="infos">
<h2>Search Tricks</h2>
<p>
Prefix searches with a type followed by a colon (e.g.
<code>fn:</code>) to restrict the search to a given type.
</p>
<p>
Accepted types are: <code>fn</code>, <code>mod</code>,
<code>struct</code>, <code>enum</code>,
<code>trait</code>, <code>type</code>, <code>macro</code>,
and <code>const</code>.
</p>
<p>
Search functions by type signature (e.g.
<code>vec -> usize</code> or <code>* -> vec</code>)
</p>
</div>
</div>
</aside>
<script>
window.rootPath = "../../";
window.currentCrate = "syn";
</script>
<script src="../../main.js"></script>
<script defer src="../../search-index.js"></script>
</body>
</html>