234 lines
62 KiB
HTML
234 lines
62 KiB
HTML
|
<!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">☰</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'>−</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<'ast> {
|
|||
|
fn <a href='#method.visit_abi' class='fnname'>visit_abi</a>(&mut self, i: &'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> &mut self, <br> i: &'ast <a class="struct" href="../../syn/struct.AngleBracketedGenericArguments.html" title="struct syn::AngleBracketedGenericArguments">AngleBracketedGenericArguments</a><br> ) { ... }
|
|||
|
<div class='item-spacer'></div> fn <a href='#method.visit_attr_style' class='fnname'>visit_attr_style</a>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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> &mut self, <br> i: &'ast <a class="struct" href="../../syn/struct.ParenthesizedGenericArguments.html" title="struct syn::ParenthesizedGenericArguments">ParenthesizedGenericArguments</a><br> ) { ... }
|
|||
|
<div class='item-spacer'></div> fn <a href='#method.visit_path' class='fnname'>visit_path</a>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>"visit"</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>(&mut self, i: &'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> &mut self, <br> i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>(&mut self, i: &'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>⏎</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>
|