[][src]Trait syn::visit::Visit

pub trait Visit<'ast> {
    fn visit_abi(&mut self, i: &'ast Abi) { ... }
fn visit_angle_bracketed_generic_arguments(
        &mut self,
        i: &'ast AngleBracketedGenericArguments
    ) { ... }
fn visit_attr_style(&mut self, i: &'ast AttrStyle) { ... }
fn visit_attribute(&mut self, i: &'ast Attribute) { ... }
fn visit_bare_fn_arg(&mut self, i: &'ast BareFnArg) { ... }
fn visit_bin_op(&mut self, i: &'ast BinOp) { ... }
fn visit_binding(&mut self, i: &'ast Binding) { ... }
fn visit_bound_lifetimes(&mut self, i: &'ast BoundLifetimes) { ... }
fn visit_const_param(&mut self, i: &'ast ConstParam) { ... }
fn visit_constraint(&mut self, i: &'ast Constraint) { ... }
fn visit_data(&mut self, i: &'ast Data) { ... }
fn visit_data_enum(&mut self, i: &'ast DataEnum) { ... }
fn visit_data_struct(&mut self, i: &'ast DataStruct) { ... }
fn visit_data_union(&mut self, i: &'ast DataUnion) { ... }
fn visit_derive_input(&mut self, i: &'ast DeriveInput) { ... }
fn visit_expr(&mut self, i: &'ast Expr) { ... }
fn visit_expr_binary(&mut self, i: &'ast ExprBinary) { ... }
fn visit_expr_call(&mut self, i: &'ast ExprCall) { ... }
fn visit_expr_cast(&mut self, i: &'ast ExprCast) { ... }
fn visit_expr_field(&mut self, i: &'ast ExprField) { ... }
fn visit_expr_index(&mut self, i: &'ast ExprIndex) { ... }
fn visit_expr_lit(&mut self, i: &'ast ExprLit) { ... }
fn visit_expr_paren(&mut self, i: &'ast ExprParen) { ... }
fn visit_expr_path(&mut self, i: &'ast ExprPath) { ... }
fn visit_expr_unary(&mut self, i: &'ast ExprUnary) { ... }
fn visit_field(&mut self, i: &'ast Field) { ... }
fn visit_fields(&mut self, i: &'ast Fields) { ... }
fn visit_fields_named(&mut self, i: &'ast FieldsNamed) { ... }
fn visit_fields_unnamed(&mut self, i: &'ast FieldsUnnamed) { ... }
fn visit_generic_argument(&mut self, i: &'ast GenericArgument) { ... }
fn visit_generic_param(&mut self, i: &'ast GenericParam) { ... }
fn visit_generics(&mut self, i: &'ast Generics) { ... }
fn visit_ident(&mut self, i: &'ast Ident) { ... }
fn visit_index(&mut self, i: &'ast Index) { ... }
fn visit_lifetime(&mut self, i: &'ast Lifetime) { ... }
fn visit_lifetime_def(&mut self, i: &'ast LifetimeDef) { ... }
fn visit_lit(&mut self, i: &'ast Lit) { ... }
fn visit_lit_bool(&mut self, i: &'ast LitBool) { ... }
fn visit_lit_byte(&mut self, i: &'ast LitByte) { ... }
fn visit_lit_byte_str(&mut self, i: &'ast LitByteStr) { ... }
fn visit_lit_char(&mut self, i: &'ast LitChar) { ... }
fn visit_lit_float(&mut self, i: &'ast LitFloat) { ... }
fn visit_lit_int(&mut self, i: &'ast LitInt) { ... }
fn visit_lit_str(&mut self, i: &'ast LitStr) { ... }
fn visit_macro(&mut self, i: &'ast Macro) { ... }
fn visit_macro_delimiter(&mut self, i: &'ast MacroDelimiter) { ... }
fn visit_member(&mut self, i: &'ast Member) { ... }
fn visit_meta(&mut self, i: &'ast Meta) { ... }
fn visit_meta_list(&mut self, i: &'ast MetaList) { ... }
fn visit_meta_name_value(&mut self, i: &'ast MetaNameValue) { ... }
fn visit_nested_meta(&mut self, i: &'ast NestedMeta) { ... }
fn visit_parenthesized_generic_arguments(
        &mut self,
        i: &'ast ParenthesizedGenericArguments
    ) { ... }
fn visit_path(&mut self, i: &'ast Path) { ... }
fn visit_path_arguments(&mut self, i: &'ast PathArguments) { ... }
fn visit_path_segment(&mut self, i: &'ast PathSegment) { ... }
fn visit_predicate_eq(&mut self, i: &'ast PredicateEq) { ... }
fn visit_predicate_lifetime(&mut self, i: &'ast PredicateLifetime) { ... }
fn visit_predicate_type(&mut self, i: &'ast PredicateType) { ... }
fn visit_qself(&mut self, i: &'ast QSelf) { ... }
fn visit_return_type(&mut self, i: &'ast ReturnType) { ... }
fn visit_span(&mut self, i: &Span) { ... }
fn visit_trait_bound(&mut self, i: &'ast TraitBound) { ... }
fn visit_trait_bound_modifier(&mut self, i: &'ast TraitBoundModifier) { ... }
fn visit_type(&mut self, i: &'ast Type) { ... }
fn visit_type_array(&mut self, i: &'ast TypeArray) { ... }
fn visit_type_bare_fn(&mut self, i: &'ast TypeBareFn) { ... }
fn visit_type_group(&mut self, i: &'ast TypeGroup) { ... }
fn visit_type_impl_trait(&mut self, i: &'ast TypeImplTrait) { ... }
fn visit_type_infer(&mut self, i: &'ast TypeInfer) { ... }
fn visit_type_macro(&mut self, i: &'ast TypeMacro) { ... }
fn visit_type_never(&mut self, i: &'ast TypeNever) { ... }
fn visit_type_param(&mut self, i: &'ast TypeParam) { ... }
fn visit_type_param_bound(&mut self, i: &'ast TypeParamBound) { ... }
fn visit_type_paren(&mut self, i: &'ast TypeParen) { ... }
fn visit_type_path(&mut self, i: &'ast TypePath) { ... }
fn visit_type_ptr(&mut self, i: &'ast TypePtr) { ... }
fn visit_type_reference(&mut self, i: &'ast TypeReference) { ... }
fn visit_type_slice(&mut self, i: &'ast TypeSlice) { ... }
fn visit_type_trait_object(&mut self, i: &'ast TypeTraitObject) { ... }
fn visit_type_tuple(&mut self, i: &'ast TypeTuple) { ... }
fn visit_un_op(&mut self, i: &'ast UnOp) { ... }
fn visit_variadic(&mut self, i: &'ast Variadic) { ... }
fn visit_variant(&mut self, i: &'ast Variant) { ... }
fn visit_vis_crate(&mut self, i: &'ast VisCrate) { ... }
fn visit_vis_public(&mut self, i: &'ast VisPublic) { ... }
fn visit_vis_restricted(&mut self, i: &'ast VisRestricted) { ... }
fn visit_visibility(&mut self, i: &'ast Visibility) { ... }
fn visit_where_clause(&mut self, i: &'ast WhereClause) { ... }
fn visit_where_predicate(&mut self, i: &'ast WherePredicate) { ... } }

Syntax tree traversal to walk a shared borrow of a syntax tree.

See the module documentation for details.

This trait is available if Syn is built with the "visit" feature.

Provided methods

fn visit_abi(&mut self, i: &'ast Abi)

fn visit_angle_bracketed_generic_arguments(
    &mut self,
    i: &'ast AngleBracketedGenericArguments
)

fn visit_attr_style(&mut self, i: &'ast AttrStyle)

fn visit_attribute(&mut self, i: &'ast Attribute)

fn visit_bare_fn_arg(&mut self, i: &'ast BareFnArg)

fn visit_bin_op(&mut self, i: &'ast BinOp)

fn visit_binding(&mut self, i: &'ast Binding)

fn visit_bound_lifetimes(&mut self, i: &'ast BoundLifetimes)

fn visit_const_param(&mut self, i: &'ast ConstParam)

fn visit_constraint(&mut self, i: &'ast Constraint)

fn visit_data(&mut self, i: &'ast Data)

fn visit_data_enum(&mut self, i: &'ast DataEnum)

fn visit_data_struct(&mut self, i: &'ast DataStruct)

fn visit_data_union(&mut self, i: &'ast DataUnion)

fn visit_derive_input(&mut self, i: &'ast DeriveInput)

fn visit_expr(&mut self, i: &'ast Expr)

fn visit_expr_binary(&mut self, i: &'ast ExprBinary)

fn visit_expr_call(&mut self, i: &'ast ExprCall)

fn visit_expr_cast(&mut self, i: &'ast ExprCast)

fn visit_expr_field(&mut self, i: &'ast ExprField)

fn visit_expr_index(&mut self, i: &'ast ExprIndex)

fn visit_expr_lit(&mut self, i: &'ast ExprLit)

fn visit_expr_paren(&mut self, i: &'ast ExprParen)

fn visit_expr_path(&mut self, i: &'ast ExprPath)

fn visit_expr_unary(&mut self, i: &'ast ExprUnary)

fn visit_field(&mut self, i: &'ast Field)

fn visit_fields(&mut self, i: &'ast Fields)

fn visit_fields_named(&mut self, i: &'ast FieldsNamed)

fn visit_fields_unnamed(&mut self, i: &'ast FieldsUnnamed)

fn visit_generic_argument(&mut self, i: &'ast GenericArgument)

fn visit_generic_param(&mut self, i: &'ast GenericParam)

fn visit_generics(&mut self, i: &'ast Generics)

fn visit_ident(&mut self, i: &'ast Ident)

fn visit_index(&mut self, i: &'ast Index)

fn visit_lifetime(&mut self, i: &'ast Lifetime)

fn visit_lifetime_def(&mut self, i: &'ast LifetimeDef)

fn visit_lit(&mut self, i: &'ast Lit)

fn visit_lit_bool(&mut self, i: &'ast LitBool)

fn visit_lit_byte(&mut self, i: &'ast LitByte)

fn visit_lit_byte_str(&mut self, i: &'ast LitByteStr)

fn visit_lit_char(&mut self, i: &'ast LitChar)

fn visit_lit_float(&mut self, i: &'ast LitFloat)

fn visit_lit_int(&mut self, i: &'ast LitInt)

fn visit_lit_str(&mut self, i: &'ast LitStr)

fn visit_macro(&mut self, i: &'ast Macro)

fn visit_macro_delimiter(&mut self, i: &'ast MacroDelimiter)

fn visit_member(&mut self, i: &'ast Member)

fn visit_meta(&mut self, i: &'ast Meta)

fn visit_meta_list(&mut self, i: &'ast MetaList)

fn visit_meta_name_value(&mut self, i: &'ast MetaNameValue)

fn visit_nested_meta(&mut self, i: &'ast NestedMeta)

fn visit_parenthesized_generic_arguments(
    &mut self,
    i: &'ast ParenthesizedGenericArguments
)

fn visit_path(&mut self, i: &'ast Path)

fn visit_path_arguments(&mut self, i: &'ast PathArguments)

fn visit_path_segment(&mut self, i: &'ast PathSegment)

fn visit_predicate_eq(&mut self, i: &'ast PredicateEq)

fn visit_predicate_lifetime(&mut self, i: &'ast PredicateLifetime)

fn visit_predicate_type(&mut self, i: &'ast PredicateType)

fn visit_qself(&mut self, i: &'ast QSelf)

fn visit_return_type(&mut self, i: &'ast ReturnType)

fn visit_span(&mut self, i: &Span)

fn visit_trait_bound(&mut self, i: &'ast TraitBound)

fn visit_trait_bound_modifier(&mut self, i: &'ast TraitBoundModifier)

fn visit_type(&mut self, i: &'ast Type)

fn visit_type_array(&mut self, i: &'ast TypeArray)

fn visit_type_bare_fn(&mut self, i: &'ast TypeBareFn)

fn visit_type_group(&mut self, i: &'ast TypeGroup)

fn visit_type_impl_trait(&mut self, i: &'ast TypeImplTrait)

fn visit_type_infer(&mut self, i: &'ast TypeInfer)

fn visit_type_macro(&mut self, i: &'ast TypeMacro)

fn visit_type_never(&mut self, i: &'ast TypeNever)

fn visit_type_param(&mut self, i: &'ast TypeParam)

fn visit_type_param_bound(&mut self, i: &'ast TypeParamBound)

fn visit_type_paren(&mut self, i: &'ast TypeParen)

fn visit_type_path(&mut self, i: &'ast TypePath)

fn visit_type_ptr(&mut self, i: &'ast TypePtr)

fn visit_type_reference(&mut self, i: &'ast TypeReference)

fn visit_type_slice(&mut self, i: &'ast TypeSlice)

fn visit_type_trait_object(&mut self, i: &'ast TypeTraitObject)

fn visit_type_tuple(&mut self, i: &'ast TypeTuple)

fn visit_un_op(&mut self, i: &'ast UnOp)

fn visit_variadic(&mut self, i: &'ast Variadic)

fn visit_variant(&mut self, i: &'ast Variant)

fn visit_vis_crate(&mut self, i: &'ast VisCrate)

fn visit_vis_public(&mut self, i: &'ast VisPublic)

fn visit_vis_restricted(&mut self, i: &'ast VisRestricted)

fn visit_visibility(&mut self, i: &'ast Visibility)

fn visit_where_clause(&mut self, i: &'ast WhereClause)

fn visit_where_predicate(&mut self, i: &'ast WherePredicate)

Loading content...

Implementors

Loading content...