Trait syn::fold::Fold [−][src]
Syntax tree traversal to transform the nodes of an owned syntax tree.
See the module documentation for details.
This trait is available only if Syn is built with the "fold"
feature.
Provided methods
fn fold_abi(&mut self, i: Abi) -> Abi
[src]
fn fold_angle_bracketed_generic_arguments(
&mut self,
i: AngleBracketedGenericArguments
) -> AngleBracketedGenericArguments
[src]
&mut self,
i: AngleBracketedGenericArguments
) -> AngleBracketedGenericArguments
fn fold_arm(&mut self, i: Arm) -> Arm
[src]
fn fold_attr_style(&mut self, i: AttrStyle) -> AttrStyle
[src]
fn fold_attribute(&mut self, i: Attribute) -> Attribute
[src]
fn fold_bare_fn_arg(&mut self, i: BareFnArg) -> BareFnArg
[src]
fn fold_bin_op(&mut self, i: BinOp) -> BinOp
[src]
fn fold_binding(&mut self, i: Binding) -> Binding
[src]
fn fold_block(&mut self, i: Block) -> Block
[src]
fn fold_bound_lifetimes(&mut self, i: BoundLifetimes) -> BoundLifetimes
[src]
fn fold_const_param(&mut self, i: ConstParam) -> ConstParam
[src]
fn fold_constraint(&mut self, i: Constraint) -> Constraint
[src]
fn fold_data(&mut self, i: Data) -> Data
[src]
fn fold_data_enum(&mut self, i: DataEnum) -> DataEnum
[src]
fn fold_data_struct(&mut self, i: DataStruct) -> DataStruct
[src]
fn fold_data_union(&mut self, i: DataUnion) -> DataUnion
[src]
fn fold_derive_input(&mut self, i: DeriveInput) -> DeriveInput
[src]
fn fold_expr(&mut self, i: Expr) -> Expr
[src]
fn fold_expr_array(&mut self, i: ExprArray) -> ExprArray
[src]
fn fold_expr_assign(&mut self, i: ExprAssign) -> ExprAssign
[src]
fn fold_expr_assign_op(&mut self, i: ExprAssignOp) -> ExprAssignOp
[src]
fn fold_expr_async(&mut self, i: ExprAsync) -> ExprAsync
[src]
fn fold_expr_await(&mut self, i: ExprAwait) -> ExprAwait
[src]
fn fold_expr_binary(&mut self, i: ExprBinary) -> ExprBinary
[src]
fn fold_expr_block(&mut self, i: ExprBlock) -> ExprBlock
[src]
fn fold_expr_box(&mut self, i: ExprBox) -> ExprBox
[src]
fn fold_expr_break(&mut self, i: ExprBreak) -> ExprBreak
[src]
fn fold_expr_call(&mut self, i: ExprCall) -> ExprCall
[src]
fn fold_expr_cast(&mut self, i: ExprCast) -> ExprCast
[src]
fn fold_expr_closure(&mut self, i: ExprClosure) -> ExprClosure
[src]
fn fold_expr_continue(&mut self, i: ExprContinue) -> ExprContinue
[src]
fn fold_expr_field(&mut self, i: ExprField) -> ExprField
[src]
fn fold_expr_for_loop(&mut self, i: ExprForLoop) -> ExprForLoop
[src]
fn fold_expr_group(&mut self, i: ExprGroup) -> ExprGroup
[src]
fn fold_expr_if(&mut self, i: ExprIf) -> ExprIf
[src]
fn fold_expr_index(&mut self, i: ExprIndex) -> ExprIndex
[src]
fn fold_expr_let(&mut self, i: ExprLet) -> ExprLet
[src]
fn fold_expr_lit(&mut self, i: ExprLit) -> ExprLit
[src]
fn fold_expr_loop(&mut self, i: ExprLoop) -> ExprLoop
[src]
fn fold_expr_macro(&mut self, i: ExprMacro) -> ExprMacro
[src]
fn fold_expr_match(&mut self, i: ExprMatch) -> ExprMatch
[src]
fn fold_expr_method_call(&mut self, i: ExprMethodCall) -> ExprMethodCall
[src]
fn fold_expr_paren(&mut self, i: ExprParen) -> ExprParen
[src]
fn fold_expr_path(&mut self, i: ExprPath) -> ExprPath
[src]
fn fold_expr_range(&mut self, i: ExprRange) -> ExprRange
[src]
fn fold_expr_reference(&mut self, i: ExprReference) -> ExprReference
[src]
fn fold_expr_repeat(&mut self, i: ExprRepeat) -> ExprRepeat
[src]
fn fold_expr_return(&mut self, i: ExprReturn) -> ExprReturn
[src]
fn fold_expr_struct(&mut self, i: ExprStruct) -> ExprStruct
[src]
fn fold_expr_try(&mut self, i: ExprTry) -> ExprTry
[src]
fn fold_expr_try_block(&mut self, i: ExprTryBlock) -> ExprTryBlock
[src]
fn fold_expr_tuple(&mut self, i: ExprTuple) -> ExprTuple
[src]
fn fold_expr_type(&mut self, i: ExprType) -> ExprType
[src]
fn fold_expr_unary(&mut self, i: ExprUnary) -> ExprUnary
[src]
fn fold_expr_unsafe(&mut self, i: ExprUnsafe) -> ExprUnsafe
[src]
fn fold_expr_while(&mut self, i: ExprWhile) -> ExprWhile
[src]
fn fold_expr_yield(&mut self, i: ExprYield) -> ExprYield
[src]
fn fold_field(&mut self, i: Field) -> Field
[src]
fn fold_field_pat(&mut self, i: FieldPat) -> FieldPat
[src]
fn fold_field_value(&mut self, i: FieldValue) -> FieldValue
[src]
fn fold_fields(&mut self, i: Fields) -> Fields
[src]
fn fold_fields_named(&mut self, i: FieldsNamed) -> FieldsNamed
[src]
fn fold_fields_unnamed(&mut self, i: FieldsUnnamed) -> FieldsUnnamed
[src]
fn fold_file(&mut self, i: File) -> File
[src]
fn fold_fn_arg(&mut self, i: FnArg) -> FnArg
[src]
fn fold_foreign_item(&mut self, i: ForeignItem) -> ForeignItem
[src]
fn fold_foreign_item_fn(&mut self, i: ForeignItemFn) -> ForeignItemFn
[src]
fn fold_foreign_item_macro(&mut self, i: ForeignItemMacro) -> ForeignItemMacro
[src]
fn fold_foreign_item_static(
&mut self,
i: ForeignItemStatic
) -> ForeignItemStatic
[src]
&mut self,
i: ForeignItemStatic
) -> ForeignItemStatic
fn fold_foreign_item_type(&mut self, i: ForeignItemType) -> ForeignItemType
[src]
fn fold_generic_argument(&mut self, i: GenericArgument) -> GenericArgument
[src]
fn fold_generic_method_argument(
&mut self,
i: GenericMethodArgument
) -> GenericMethodArgument
[src]
&mut self,
i: GenericMethodArgument
) -> GenericMethodArgument
fn fold_generic_param(&mut self, i: GenericParam) -> GenericParam
[src]
fn fold_generics(&mut self, i: Generics) -> Generics
[src]
fn fold_ident(&mut self, i: Ident) -> Ident
[src]
fn fold_impl_item(&mut self, i: ImplItem) -> ImplItem
[src]
fn fold_impl_item_const(&mut self, i: ImplItemConst) -> ImplItemConst
[src]
fn fold_impl_item_macro(&mut self, i: ImplItemMacro) -> ImplItemMacro
[src]
fn fold_impl_item_method(&mut self, i: ImplItemMethod) -> ImplItemMethod
[src]
fn fold_impl_item_type(&mut self, i: ImplItemType) -> ImplItemType
[src]
fn fold_index(&mut self, i: Index) -> Index
[src]
fn fold_item(&mut self, i: Item) -> Item
[src]
fn fold_item_const(&mut self, i: ItemConst) -> ItemConst
[src]
fn fold_item_enum(&mut self, i: ItemEnum) -> ItemEnum
[src]
fn fold_item_extern_crate(&mut self, i: ItemExternCrate) -> ItemExternCrate
[src]
fn fold_item_fn(&mut self, i: ItemFn) -> ItemFn
[src]
fn fold_item_foreign_mod(&mut self, i: ItemForeignMod) -> ItemForeignMod
[src]
fn fold_item_impl(&mut self, i: ItemImpl) -> ItemImpl
[src]
fn fold_item_macro(&mut self, i: ItemMacro) -> ItemMacro
[src]
fn fold_item_macro2(&mut self, i: ItemMacro2) -> ItemMacro2
[src]
fn fold_item_mod(&mut self, i: ItemMod) -> ItemMod
[src]
fn fold_item_static(&mut self, i: ItemStatic) -> ItemStatic
[src]
fn fold_item_struct(&mut self, i: ItemStruct) -> ItemStruct
[src]
fn fold_item_trait(&mut self, i: ItemTrait) -> ItemTrait
[src]
fn fold_item_trait_alias(&mut self, i: ItemTraitAlias) -> ItemTraitAlias
[src]
fn fold_item_type(&mut self, i: ItemType) -> ItemType
[src]
fn fold_item_union(&mut self, i: ItemUnion) -> ItemUnion
[src]
fn fold_item_use(&mut self, i: ItemUse) -> ItemUse
[src]
fn fold_label(&mut self, i: Label) -> Label
[src]
fn fold_lifetime(&mut self, i: Lifetime) -> Lifetime
[src]
fn fold_lifetime_def(&mut self, i: LifetimeDef) -> LifetimeDef
[src]
fn fold_lit(&mut self, i: Lit) -> Lit
[src]
fn fold_lit_bool(&mut self, i: LitBool) -> LitBool
[src]
fn fold_lit_byte(&mut self, i: LitByte) -> LitByte
[src]
fn fold_lit_byte_str(&mut self, i: LitByteStr) -> LitByteStr
[src]
fn fold_lit_char(&mut self, i: LitChar) -> LitChar
[src]
fn fold_lit_float(&mut self, i: LitFloat) -> LitFloat
[src]
fn fold_lit_int(&mut self, i: LitInt) -> LitInt
[src]
fn fold_lit_str(&mut self, i: LitStr) -> LitStr
[src]
fn fold_local(&mut self, i: Local) -> Local
[src]
fn fold_macro(&mut self, i: Macro) -> Macro
[src]
fn fold_macro_delimiter(&mut self, i: MacroDelimiter) -> MacroDelimiter
[src]
fn fold_member(&mut self, i: Member) -> Member
[src]
fn fold_meta(&mut self, i: Meta) -> Meta
[src]
fn fold_meta_list(&mut self, i: MetaList) -> MetaList
[src]
fn fold_meta_name_value(&mut self, i: MetaNameValue) -> MetaNameValue
[src]
fn fold_method_turbofish(&mut self, i: MethodTurbofish) -> MethodTurbofish
[src]
fn fold_nested_meta(&mut self, i: NestedMeta) -> NestedMeta
[src]
fn fold_parenthesized_generic_arguments(
&mut self,
i: ParenthesizedGenericArguments
) -> ParenthesizedGenericArguments
[src]
&mut self,
i: ParenthesizedGenericArguments
) -> ParenthesizedGenericArguments
fn fold_pat(&mut self, i: Pat) -> Pat
[src]
fn fold_pat_box(&mut self, i: PatBox) -> PatBox
[src]
fn fold_pat_ident(&mut self, i: PatIdent) -> PatIdent
[src]
fn fold_pat_lit(&mut self, i: PatLit) -> PatLit
[src]
fn fold_pat_macro(&mut self, i: PatMacro) -> PatMacro
[src]
fn fold_pat_or(&mut self, i: PatOr) -> PatOr
[src]
fn fold_pat_path(&mut self, i: PatPath) -> PatPath
[src]
fn fold_pat_range(&mut self, i: PatRange) -> PatRange
[src]
fn fold_pat_reference(&mut self, i: PatReference) -> PatReference
[src]
fn fold_pat_rest(&mut self, i: PatRest) -> PatRest
[src]
fn fold_pat_slice(&mut self, i: PatSlice) -> PatSlice
[src]
fn fold_pat_struct(&mut self, i: PatStruct) -> PatStruct
[src]
fn fold_pat_tuple(&mut self, i: PatTuple) -> PatTuple
[src]
fn fold_pat_tuple_struct(&mut self, i: PatTupleStruct) -> PatTupleStruct
[src]
fn fold_pat_type(&mut self, i: PatType) -> PatType
[src]
fn fold_pat_wild(&mut self, i: PatWild) -> PatWild
[src]
fn fold_path(&mut self, i: Path) -> Path
[src]
fn fold_path_arguments(&mut self, i: PathArguments) -> PathArguments
[src]
fn fold_path_segment(&mut self, i: PathSegment) -> PathSegment
[src]
fn fold_predicate_eq(&mut self, i: PredicateEq) -> PredicateEq
[src]
fn fold_predicate_lifetime(&mut self, i: PredicateLifetime) -> PredicateLifetime
[src]
fn fold_predicate_type(&mut self, i: PredicateType) -> PredicateType
[src]
fn fold_qself(&mut self, i: QSelf) -> QSelf
[src]
fn fold_range_limits(&mut self, i: RangeLimits) -> RangeLimits
[src]
fn fold_receiver(&mut self, i: Receiver) -> Receiver
[src]
fn fold_return_type(&mut self, i: ReturnType) -> ReturnType
[src]
fn fold_signature(&mut self, i: Signature) -> Signature
[src]
fn fold_span(&mut self, i: Span) -> Span
[src]
fn fold_stmt(&mut self, i: Stmt) -> Stmt
[src]
fn fold_trait_bound(&mut self, i: TraitBound) -> TraitBound
[src]
fn fold_trait_bound_modifier(
&mut self,
i: TraitBoundModifier
) -> TraitBoundModifier
[src]
&mut self,
i: TraitBoundModifier
) -> TraitBoundModifier