pub trait Fold {
Show 188 methods
// Provided methods
fn fold_abi(&mut self, i: Abi) -> Abi { ... }
fn fold_angle_bracketed_generic_arguments(
&mut self,
i: AngleBracketedGenericArguments,
) -> AngleBracketedGenericArguments { ... }
fn fold_arm(&mut self, i: Arm) -> Arm { ... }
fn fold_assoc_const(&mut self, i: AssocConst) -> AssocConst { ... }
fn fold_assoc_type(&mut self, i: AssocType) -> AssocType { ... }
fn fold_attr_style(&mut self, i: AttrStyle) -> AttrStyle { ... }
fn fold_attribute(&mut self, i: Attribute) -> Attribute { ... }
fn fold_attributes(&mut self, i: Vec<Attribute>) -> Vec<Attribute> { ... }
fn fold_bare_fn_arg(&mut self, i: BareFnArg) -> BareFnArg { ... }
fn fold_bare_variadic(&mut self, i: BareVariadic) -> BareVariadic { ... }
fn fold_bin_op(&mut self, i: BinOp) -> BinOp { ... }
fn fold_block(&mut self, i: Block) -> Block { ... }
fn fold_bound_lifetimes(&mut self, i: BoundLifetimes) -> BoundLifetimes { ... }
fn fold_captured_param(&mut self, i: CapturedParam) -> CapturedParam { ... }
fn fold_const_param(&mut self, i: ConstParam) -> ConstParam { ... }
fn fold_constraint(&mut self, i: Constraint) -> Constraint { ... }
fn fold_data(&mut self, i: Data) -> Data { ... }
fn fold_data_enum(&mut self, i: DataEnum) -> DataEnum { ... }
fn fold_data_struct(&mut self, i: DataStruct) -> DataStruct { ... }
fn fold_data_union(&mut self, i: DataUnion) -> DataUnion { ... }
fn fold_derive_input(&mut self, i: DeriveInput) -> DeriveInput { ... }
fn fold_expr(&mut self, i: Expr) -> Expr { ... }
fn fold_expr_array(&mut self, i: ExprArray) -> ExprArray { ... }
fn fold_expr_assign(&mut self, i: ExprAssign) -> ExprAssign { ... }
fn fold_expr_async(&mut self, i: ExprAsync) -> ExprAsync { ... }
fn fold_expr_await(&mut self, i: ExprAwait) -> ExprAwait { ... }
fn fold_expr_binary(&mut self, i: ExprBinary) -> ExprBinary { ... }
fn fold_expr_block(&mut self, i: ExprBlock) -> ExprBlock { ... }
fn fold_expr_break(&mut self, i: ExprBreak) -> ExprBreak { ... }
fn fold_expr_call(&mut self, i: ExprCall) -> ExprCall { ... }
fn fold_expr_cast(&mut self, i: ExprCast) -> ExprCast { ... }
fn fold_expr_closure(&mut self, i: ExprClosure) -> ExprClosure { ... }
fn fold_expr_const(&mut self, i: ExprConst) -> ExprConst { ... }
fn fold_expr_continue(&mut self, i: ExprContinue) -> ExprContinue { ... }
fn fold_expr_field(&mut self, i: ExprField) -> ExprField { ... }
fn fold_expr_for_loop(&mut self, i: ExprForLoop) -> ExprForLoop { ... }
fn fold_expr_group(&mut self, i: ExprGroup) -> ExprGroup { ... }
fn fold_expr_if(&mut self, i: ExprIf) -> ExprIf { ... }
fn fold_expr_index(&mut self, i: ExprIndex) -> ExprIndex { ... }
fn fold_expr_infer(&mut self, i: ExprInfer) -> ExprInfer { ... }
fn fold_expr_let(&mut self, i: ExprLet) -> ExprLet { ... }
fn fold_expr_lit(&mut self, i: ExprLit) -> ExprLit { ... }
fn fold_expr_loop(&mut self, i: ExprLoop) -> ExprLoop { ... }
fn fold_expr_macro(&mut self, i: ExprMacro) -> ExprMacro { ... }
fn fold_expr_match(&mut self, i: ExprMatch) -> ExprMatch { ... }
fn fold_expr_method_call(&mut self, i: ExprMethodCall) -> ExprMethodCall { ... }
fn fold_expr_paren(&mut self, i: ExprParen) -> ExprParen { ... }
fn fold_expr_path(&mut self, i: ExprPath) -> ExprPath { ... }
fn fold_expr_range(&mut self, i: ExprRange) -> ExprRange { ... }
fn fold_expr_raw_addr(&mut self, i: ExprRawAddr) -> ExprRawAddr { ... }
fn fold_expr_reference(&mut self, i: ExprReference) -> ExprReference { ... }
fn fold_expr_repeat(&mut self, i: ExprRepeat) -> ExprRepeat { ... }
fn fold_expr_return(&mut self, i: ExprReturn) -> ExprReturn { ... }
fn fold_expr_struct(&mut self, i: ExprStruct) -> ExprStruct { ... }
fn fold_expr_try(&mut self, i: ExprTry) -> ExprTry { ... }
fn fold_expr_try_block(&mut self, i: ExprTryBlock) -> ExprTryBlock { ... }
fn fold_expr_tuple(&mut self, i: ExprTuple) -> ExprTuple { ... }
fn fold_expr_unary(&mut self, i: ExprUnary) -> ExprUnary { ... }
fn fold_expr_unsafe(&mut self, i: ExprUnsafe) -> ExprUnsafe { ... }
fn fold_expr_while(&mut self, i: ExprWhile) -> ExprWhile { ... }
fn fold_expr_yield(&mut self, i: ExprYield) -> ExprYield { ... }
fn fold_field(&mut self, i: Field) -> Field { ... }
fn fold_field_mutability(&mut self, i: FieldMutability) -> FieldMutability { ... }
fn fold_field_pat(&mut self, i: FieldPat) -> FieldPat { ... }
fn fold_field_value(&mut self, i: FieldValue) -> FieldValue { ... }
fn fold_fields(&mut self, i: Fields) -> Fields { ... }
fn fold_fields_named(&mut self, i: FieldsNamed) -> FieldsNamed { ... }
fn fold_fields_unnamed(&mut self, i: FieldsUnnamed) -> FieldsUnnamed { ... }
fn fold_file(&mut self, i: File) -> File { ... }
fn fold_fn_arg(&mut self, i: FnArg) -> FnArg { ... }
fn fold_foreign_item(&mut self, i: ForeignItem) -> ForeignItem { ... }
fn fold_foreign_item_fn(&mut self, i: ForeignItemFn) -> ForeignItemFn { ... }
fn fold_foreign_item_macro(
&mut self,
i: ForeignItemMacro,
) -> ForeignItemMacro { ... }
fn fold_foreign_item_static(
&mut self,
i: ForeignItemStatic,
) -> ForeignItemStatic { ... }
fn fold_foreign_item_type(&mut self, i: ForeignItemType) -> ForeignItemType { ... }
fn fold_generic_argument(&mut self, i: GenericArgument) -> GenericArgument { ... }
fn fold_generic_param(&mut self, i: GenericParam) -> GenericParam { ... }
fn fold_generics(&mut self, i: Generics) -> Generics { ... }
fn fold_ident(&mut self, i: Ident) -> Ident { ... }
fn fold_impl_item(&mut self, i: ImplItem) -> ImplItem { ... }
fn fold_impl_item_const(&mut self, i: ImplItemConst) -> ImplItemConst { ... }
fn fold_impl_item_fn(&mut self, i: ImplItemFn) -> ImplItemFn { ... }
fn fold_impl_item_macro(&mut self, i: ImplItemMacro) -> ImplItemMacro { ... }
fn fold_impl_item_type(&mut self, i: ImplItemType) -> ImplItemType { ... }
fn fold_impl_restriction(&mut self, i: ImplRestriction) -> ImplRestriction { ... }
fn fold_index(&mut self, i: Index) -> Index { ... }
fn fold_item(&mut self, i: Item) -> Item { ... }
fn fold_item_const(&mut self, i: ItemConst) -> ItemConst { ... }
fn fold_item_enum(&mut self, i: ItemEnum) -> ItemEnum { ... }
fn fold_item_extern_crate(&mut self, i: ItemExternCrate) -> ItemExternCrate { ... }
fn fold_item_fn(&mut self, i: ItemFn) -> ItemFn { ... }
fn fold_item_foreign_mod(&mut self, i: ItemForeignMod) -> ItemForeignMod { ... }
fn fold_item_impl(&mut self, i: ItemImpl) -> ItemImpl { ... }
fn fold_item_macro(&mut self, i: ItemMacro) -> ItemMacro { ... }
fn fold_item_mod(&mut self, i: ItemMod) -> ItemMod { ... }
fn fold_item_static(&mut self, i: ItemStatic) -> ItemStatic { ... }
fn fold_item_struct(&mut self, i: ItemStruct) -> ItemStruct { ... }
fn fold_item_trait(&mut self, i: ItemTrait) -> ItemTrait { ... }
fn fold_item_trait_alias(&mut self, i: ItemTraitAlias) -> ItemTraitAlias { ... }
fn fold_item_type(&mut self, i: ItemType) -> ItemType { ... }
fn fold_item_union(&mut self, i: ItemUnion) -> ItemUnion { ... }
fn fold_item_use(&mut self, i: ItemUse) -> ItemUse { ... }
fn fold_label(&mut self, i: Label) -> Label { ... }
fn fold_lifetime(&mut self, i: Lifetime) -> Lifetime { ... }
fn fold_lifetime_param(&mut self, i: LifetimeParam) -> LifetimeParam { ... }
fn fold_lit(&mut self, i: Lit) -> Lit { ... }
fn fold_lit_bool(&mut self, i: LitBool) -> LitBool { ... }
fn fold_lit_byte(&mut self, i: LitByte) -> LitByte { ... }
fn fold_lit_byte_str(&mut self, i: LitByteStr) -> LitByteStr { ... }
fn fold_lit_cstr(&mut self, i: LitCStr) -> LitCStr { ... }
fn fold_lit_char(&mut self, i: LitChar) -> LitChar { ... }
fn fold_lit_float(&mut self, i: LitFloat) -> LitFloat { ... }
fn fold_lit_int(&mut self, i: LitInt) -> LitInt { ... }
fn fold_lit_str(&mut self, i: LitStr) -> LitStr { ... }
fn fold_local(&mut self, i: Local) -> Local { ... }
fn fold_local_init(&mut self, i: LocalInit) -> LocalInit { ... }
fn fold_macro(&mut self, i: Macro) -> Macro { ... }
fn fold_macro_delimiter(&mut self, i: MacroDelimiter) -> MacroDelimiter { ... }
fn fold_member(&mut self, i: Member) -> Member { ... }
fn fold_meta(&mut self, i: Meta) -> Meta { ... }
fn fold_meta_list(&mut self, i: MetaList) -> MetaList { ... }
fn fold_meta_name_value(&mut self, i: MetaNameValue) -> MetaNameValue { ... }
fn fold_parenthesized_generic_arguments(
&mut self,
i: ParenthesizedGenericArguments,
) -> ParenthesizedGenericArguments { ... }
fn fold_pat(&mut self, i: Pat) -> Pat { ... }
fn fold_pat_ident(&mut self, i: PatIdent) -> PatIdent { ... }
fn fold_pat_or(&mut self, i: PatOr) -> PatOr { ... }
fn fold_pat_paren(&mut self, i: PatParen) -> PatParen { ... }
fn fold_pat_reference(&mut self, i: PatReference) -> PatReference { ... }
fn fold_pat_rest(&mut self, i: PatRest) -> PatRest { ... }
fn fold_pat_slice(&mut self, i: PatSlice) -> PatSlice { ... }
fn fold_pat_struct(&mut self, i: PatStruct) -> PatStruct { ... }
fn fold_pat_tuple(&mut self, i: PatTuple) -> PatTuple { ... }
fn fold_pat_tuple_struct(&mut self, i: PatTupleStruct) -> PatTupleStruct { ... }
fn fold_pat_type(&mut self, i: PatType) -> PatType { ... }
fn fold_pat_wild(&mut self, i: PatWild) -> PatWild { ... }
fn fold_path(&mut self, i: Path) -> Path { ... }
fn fold_path_arguments(&mut self, i: PathArguments) -> PathArguments { ... }
fn fold_path_segment(&mut self, i: PathSegment) -> PathSegment { ... }
fn fold_pointer_mutability(
&mut self,
i: PointerMutability,
) -> PointerMutability { ... }
fn fold_precise_capture(&mut self, i: PreciseCapture) -> PreciseCapture { ... }
fn fold_predicate_lifetime(
&mut self,
i: PredicateLifetime,
) -> PredicateLifetime { ... }
fn fold_predicate_type(&mut self, i: PredicateType) -> PredicateType { ... }
fn fold_qself(&mut self, i: QSelf) -> QSelf { ... }
fn fold_range_limits(&mut self, i: RangeLimits) -> RangeLimits { ... }
fn fold_receiver(&mut self, i: Receiver) -> Receiver { ... }
fn fold_return_type(&mut self, i: ReturnType) -> ReturnType { ... }
fn fold_signature(&mut self, i: Signature) -> Signature { ... }
fn fold_span(&mut self, i: Span) -> Span { ... }
fn fold_static_mutability(
&mut self,
i: StaticMutability,
) -> StaticMutability { ... }
fn fold_stmt(&mut self, i: Stmt) -> Stmt { ... }
fn fold_stmt_macro(&mut self, i: StmtMacro) -> StmtMacro { ... }
fn fold_trait_bound(&mut self, i: TraitBound) -> TraitBound { ... }
fn fold_trait_bound_modifier(
&mut self,
i: TraitBoundModifier,
) -> TraitBoundModifier { ... }
fn fold_trait_item(&mut self, i: TraitItem) -> TraitItem { ... }
fn fold_trait_item_const(&mut self, i: TraitItemConst) -> TraitItemConst { ... }
fn fold_trait_item_fn(&mut self, i: TraitItemFn) -> TraitItemFn { ... }
fn fold_trait_item_macro(&mut self, i: TraitItemMacro) -> TraitItemMacro { ... }
fn fold_trait_item_type(&mut self, i: TraitItemType) -> TraitItemType { ... }
fn fold_type(&mut self, i: Type) -> Type { ... }
fn fold_type_array(&mut self, i: TypeArray) -> TypeArray { ... }
fn fold_type_bare_fn(&mut self, i: TypeBareFn) -> TypeBareFn { ... }
fn fold_type_group(&mut self, i: TypeGroup) -> TypeGroup { ... }
fn fold_type_impl_trait(&mut self, i: TypeImplTrait) -> TypeImplTrait { ... }
fn fold_type_infer(&mut self, i: TypeInfer) -> TypeInfer { ... }
fn fold_type_macro(&mut self, i: TypeMacro) -> TypeMacro { ... }
fn fold_type_never(&mut self, i: TypeNever) -> TypeNever { ... }
fn fold_type_param(&mut self, i: TypeParam) -> TypeParam { ... }
fn fold_type_param_bound(&mut self, i: TypeParamBound) -> TypeParamBound { ... }
fn fold_type_paren(&mut self, i: TypeParen) -> TypeParen { ... }
fn fold_type_path(&mut self, i: TypePath) -> TypePath { ... }
fn fold_type_ptr(&mut self, i: TypePtr) -> TypePtr { ... }
fn fold_type_reference(&mut self, i: TypeReference) -> TypeReference { ... }
fn fold_type_slice(&mut self, i: TypeSlice) -> TypeSlice { ... }
fn fold_type_trait_object(&mut self, i: TypeTraitObject) -> TypeTraitObject { ... }
fn fold_type_tuple(&mut self, i: TypeTuple) -> TypeTuple { ... }
fn fold_un_op(&mut self, i: UnOp) -> UnOp { ... }
fn fold_use_glob(&mut self, i: UseGlob) -> UseGlob { ... }
fn fold_use_group(&mut self, i: UseGroup) -> UseGroup { ... }
fn fold_use_name(&mut self, i: UseName) -> UseName { ... }
fn fold_use_path(&mut self, i: UsePath) -> UsePath { ... }
fn fold_use_rename(&mut self, i: UseRename) -> UseRename { ... }
fn fold_use_tree(&mut self, i: UseTree) -> UseTree { ... }
fn fold_variadic(&mut self, i: Variadic) -> Variadic { ... }
fn fold_variant(&mut self, i: Variant) -> Variant { ... }
fn fold_vis_restricted(&mut self, i: VisRestricted) -> VisRestricted { ... }
fn fold_visibility(&mut self, i: Visibility) -> Visibility { ... }
fn fold_where_clause(&mut self, i: WhereClause) -> WhereClause { ... }
fn fold_where_predicate(&mut self, i: WherePredicate) -> WherePredicate { ... }
}
Available on crate feature
fold
only.Expand description
Syntax tree traversal to transform the nodes of an owned syntax tree.
See the module documentation for details.
Provided Methodsยง
fn fold_abi(&mut self, i: Abi) -> Abi
Available on crate features
derive
or full
only.fn fold_angle_bracketed_generic_arguments( &mut self, i: AngleBracketedGenericArguments, ) -> AngleBracketedGenericArguments
Available on crate features
derive
or full
only.fn fold_arm(&mut self, i: Arm) -> Arm
Available on crate feature
full
only.fn fold_assoc_const(&mut self, i: AssocConst) -> AssocConst
Available on crate features
derive
or full
only.fn fold_assoc_type(&mut self, i: AssocType) -> AssocType
Available on crate features
derive
or full
only.fn fold_attr_style(&mut self, i: AttrStyle) -> AttrStyle
Available on crate features
derive
or full
only.fn fold_attribute(&mut self, i: Attribute) -> Attribute
Available on crate features
derive
or full
only.fn fold_attributes(&mut self, i: Vec<Attribute>) -> Vec<Attribute>
Available on crate features
derive
or full
only.fn fold_bare_fn_arg(&mut self, i: BareFnArg) -> BareFnArg
Available on crate features
derive
or full
only.fn fold_bare_variadic(&mut self, i: BareVariadic) -> BareVariadic
Available on crate features
derive
or full
only.fn fold_bin_op(&mut self, i: BinOp) -> BinOp
Available on crate features
derive
or full
only.fn fold_block(&mut self, i: Block) -> Block
Available on crate feature
full
only.fn fold_bound_lifetimes(&mut self, i: BoundLifetimes) -> BoundLifetimes
Available on crate features
derive
or full
only.fn fold_captured_param(&mut self, i: CapturedParam) -> CapturedParam
Available on crate feature
full
only.fn fold_const_param(&mut self, i: ConstParam) -> ConstParam
Available on crate features
derive
or full
only.fn fold_constraint(&mut self, i: Constraint) -> Constraint
Available on crate features
derive
or full
only.fn fold_data(&mut self, i: Data) -> Data
Available on crate feature
derive
only.fn fold_data_enum(&mut self, i: DataEnum) -> DataEnum
Available on crate feature
derive
only.fn fold_data_struct(&mut self, i: DataStruct) -> DataStruct
Available on crate feature
derive
only.fn fold_data_union(&mut self, i: DataUnion) -> DataUnion
Available on crate feature
derive
only.fn fold_derive_input(&mut self, i: DeriveInput) -> DeriveInput
Available on crate feature
derive
only.fn fold_expr(&mut self, i: Expr) -> Expr
Available on crate features
derive
or full
only.fn fold_expr_array(&mut self, i: ExprArray) -> ExprArray
Available on crate feature
full
only.fn fold_expr_assign(&mut self, i: ExprAssign) -> ExprAssign
Available on crate feature
full
only.fn fold_expr_async(&mut self, i: ExprAsync) -> ExprAsync
Available on crate feature
full
only.fn fold_expr_await(&mut self, i: ExprAwait) -> ExprAwait
Available on crate feature
full
only.fn fold_expr_binary(&mut self, i: ExprBinary) -> ExprBinary
Available on crate features
derive
or full
only.fn fold_expr_block(&mut self, i: ExprBlock) -> ExprBlock
Available on crate feature
full
only.fn fold_expr_break(&mut self, i: ExprBreak) -> ExprBreak
Available on crate feature
full
only.fn fold_expr_call(&mut self, i: ExprCall) -> ExprCall
Available on crate features
derive
or full
only.fn fold_expr_cast(&mut self, i: ExprCast) -> ExprCast
Available on crate features
derive
or full
only.fn fold_expr_closure(&mut self, i: ExprClosure) -> ExprClosure
Available on crate feature
full
only.fn fold_expr_const(&mut self, i: ExprConst) -> ExprConst
Available on crate feature
full
only.fn fold_expr_continue(&mut self, i: ExprContinue) -> ExprContinue
Available on crate feature
full
only.fn fold_expr_field(&mut self, i: ExprField) -> ExprField
Available on crate features
derive
or full
only.fn fold_expr_for_loop(&mut self, i: ExprForLoop) -> ExprForLoop
Available on crate feature
full
only.fn fold_expr_group(&mut self, i: ExprGroup) -> ExprGroup
Available on crate features
derive
or full
only.fn fold_expr_if(&mut self, i: ExprIf) -> ExprIf
Available on crate feature
full
only.fn fold_expr_index(&mut self, i: ExprIndex) -> ExprIndex
Available on crate features
derive
or full
only.fn fold_expr_infer(&mut self, i: ExprInfer) -> ExprInfer
Available on crate feature
full
only.fn fold_expr_let(&mut self, i: ExprLet) -> ExprLet
Available on crate feature
full
only.fn fold_expr_lit(&mut self, i: ExprLit) -> ExprLit
Available on crate features
derive
or full
only.fn fold_expr_loop(&mut self, i: ExprLoop) -> ExprLoop
Available on crate feature
full
only.fn fold_expr_macro(&mut self, i: ExprMacro) -> ExprMacro
Available on crate features
derive
or full
only.fn fold_expr_match(&mut self, i: ExprMatch) -> ExprMatch
Available on crate feature
full
only.fn fold_expr_method_call(&mut self, i: ExprMethodCall) -> ExprMethodCall
Available on crate features
derive
or full
only.fn fold_expr_paren(&mut self, i: ExprParen) -> ExprParen
Available on crate features
derive
or full
only.fn fold_expr_path(&mut self, i: ExprPath) -> ExprPath
Available on crate features
derive
or full
only.fn fold_expr_range(&mut self, i: ExprRange) -> ExprRange
Available on crate feature
full
only.fn fold_expr_raw_addr(&mut self, i: ExprRawAddr) -> ExprRawAddr
Available on crate feature
full
only.fn fold_expr_reference(&mut self, i: ExprReference) -> ExprReference
Available on crate features
derive
or full
only.fn fold_expr_repeat(&mut self, i: ExprRepeat) -> ExprRepeat
Available on crate feature
full
only.fn fold_expr_return(&mut self, i: ExprReturn) -> ExprReturn
Available on crate feature
full
only.fn fold_expr_struct(&mut self, i: ExprStruct) -> ExprStruct
Available on crate features
derive
or full
only.fn fold_expr_try(&mut self, i: ExprTry) -> ExprTry
Available on crate feature
full
only.fn fold_expr_try_block(&mut self, i: ExprTryBlock) -> ExprTryBlock
Available on crate feature
full
only.fn fold_expr_tuple(&mut self, i: ExprTuple) -> ExprTuple
Available on crate features
derive
or full
only.fn fold_expr_unary(&mut self, i: ExprUnary) -> ExprUnary
Available on crate features
derive
or full
only.fn fold_expr_unsafe(&mut self, i: ExprUnsafe) -> ExprUnsafe
Available on crate feature
full
only.fn fold_expr_while(&mut self, i: ExprWhile) -> ExprWhile
Available on crate feature
full
only.fn fold_expr_yield(&mut self, i: ExprYield) -> ExprYield
Available on crate feature
full
only.fn fold_field(&mut self, i: Field) -> Field
Available on crate features
derive
or full
only.fn fold_field_mutability(&mut self, i: FieldMutability) -> FieldMutability
Available on crate features
derive
or full
only.fn fold_field_pat(&mut self, i: FieldPat) -> FieldPat
Available on crate feature
full
only.fn fold_field_value(&mut self, i: FieldValue) -> FieldValue
Available on crate features
derive
or full
only.fn fold_fields(&mut self, i: Fields) -> Fields
Available on crate features
derive
or full
only.fn fold_fields_named(&mut self, i: FieldsNamed) -> FieldsNamed
Available on crate features
derive
or full
only.fn fold_fields_unnamed(&mut self, i: FieldsUnnamed) -> FieldsUnnamed
Available on crate features
derive
or full
only.fn fold_file(&mut self, i: File) -> File
Available on crate feature
full
only.fn fold_fn_arg(&mut self, i: FnArg) -> FnArg
Available on crate feature
full
only.fn fold_foreign_item(&mut self, i: ForeignItem) -> ForeignItem
Available on crate feature
full
only.fn fold_foreign_item_fn(&mut self, i: ForeignItemFn) -> ForeignItemFn
Available on crate feature
full
only.fn fold_foreign_item_macro(&mut self, i: ForeignItemMacro) -> ForeignItemMacro
Available on crate feature
full
only.fn fold_foreign_item_static( &mut self, i: ForeignItemStatic, ) -> ForeignItemStatic
Available on crate feature
full
only.fn fold_foreign_item_type(&mut self, i: ForeignItemType) -> ForeignItemType
Available on crate feature
full
only.fn fold_generic_argument(&mut self, i: GenericArgument) -> GenericArgument
Available on crate features
derive
or full
only.fn fold_generic_param(&mut self, i: GenericParam) -> GenericParam
Available on crate features
derive
or full
only.fn fold_generics(&mut self, i: Generics) -> Generics
Available on crate features
derive
or full
only.fn fold_ident(&mut self, i: Ident) -> Ident
fn fold_impl_item(&mut self, i: ImplItem) -> ImplItem
Available on crate feature
full
only.fn fold_impl_item_const(&mut self, i: ImplItemConst) -> ImplItemConst
Available on crate feature
full
only.fn fold_impl_item_fn(&mut self, i: ImplItemFn) -> ImplItemFn
Available on crate feature
full
only.fn fold_impl_item_macro(&mut self, i: ImplItemMacro) -> ImplItemMacro
Available on crate feature
full
only.fn fold_impl_item_type(&mut self, i: ImplItemType) -> ImplItemType
Available on crate feature
full
only.fn fold_impl_restriction(&mut self, i: ImplRestriction) -> ImplRestriction
Available on crate feature
full
only.fn fold_index(&mut self, i: Index) -> Index
Available on crate features
derive
or full
only.fn fold_item(&mut self, i: Item) -> Item
Available on crate feature
full
only.fn fold_item_const(&mut self, i: ItemConst) -> ItemConst
Available on crate feature
full
only.fn fold_item_enum(&mut self, i: ItemEnum) -> ItemEnum
Available on crate feature
full
only.fn fold_item_extern_crate(&mut self, i: ItemExternCrate) -> ItemExternCrate
Available on crate feature
full
only.fn fold_item_fn(&mut self, i: ItemFn) -> ItemFn
Available on crate feature
full
only.fn fold_item_foreign_mod(&mut self, i: ItemForeignMod) -> ItemForeignMod
Available on crate feature
full
only.fn fold_item_impl(&mut self, i: ItemImpl) -> ItemImpl
Available on crate feature
full
only.fn fold_item_macro(&mut self, i: ItemMacro) -> ItemMacro
Available on crate feature
full
only.fn fold_item_mod(&mut self, i: ItemMod) -> ItemMod
Available on crate feature
full
only.fn fold_item_static(&mut self, i: ItemStatic) -> ItemStatic
Available on crate feature
full
only.fn fold_item_struct(&mut self, i: ItemStruct) -> ItemStruct
Available on crate feature
full
only.fn fold_item_trait(&mut self, i: ItemTrait) -> ItemTrait
Available on crate feature
full
only.fn fold_item_trait_alias(&mut self, i: ItemTraitAlias) -> ItemTraitAlias
Available on crate feature
full
only.fn fold_item_type(&mut self, i: ItemType) -> ItemType
Available on crate feature
full
only.fn fold_item_union(&mut self, i: ItemUnion) -> ItemUnion
Available on crate feature
full
only.fn fold_item_use(&mut self, i: ItemUse) -> ItemUse
Available on crate feature
full
only.fn fold_label(&mut self, i: Label) -> Label
Available on crate feature
full
only.fn fold_lifetime(&mut self, i: Lifetime) -> Lifetime
fn fold_lifetime_param(&mut self, i: LifetimeParam) -> LifetimeParam
Available on crate features
derive
or full
only.fn fold_lit(&mut self, i: Lit) -> Lit
fn fold_lit_bool(&mut self, i: LitBool) -> LitBool
fn fold_lit_byte(&mut self, i: LitByte) -> LitByte
fn fold_lit_byte_str(&mut self, i: LitByteStr) -> LitByteStr
fn fold_lit_cstr(&mut self, i: LitCStr) -> LitCStr
fn fold_lit_char(&mut self, i: LitChar) -> LitChar
fn fold_lit_float(&mut self, i: LitFloat) -> LitFloat
fn fold_lit_int(&mut self, i: LitInt) -> LitInt
fn fold_lit_str(&mut self, i: LitStr) -> LitStr
fn fold_local(&mut self, i: Local) -> Local
Available on crate feature
full
only.fn fold_local_init(&mut self, i: LocalInit) -> LocalInit
Available on crate feature
full
only.fn fold_macro(&mut self, i: Macro) -> Macro
Available on crate features
derive
or full
only.fn fold_macro_delimiter(&mut self, i: MacroDelimiter) -> MacroDelimiter
Available on crate features
derive
or full
only.fn fold_member(&mut self, i: Member) -> Member
Available on crate features
derive
or full
only.fn fold_meta(&mut self, i: Meta) -> Meta
Available on crate features
derive
or full
only.fn fold_meta_list(&mut self, i: MetaList) -> MetaList
Available on crate features
derive
or full
only.fn fold_meta_name_value(&mut self, i: MetaNameValue) -> MetaNameValue
Available on crate features
derive
or full
only.fn fold_parenthesized_generic_arguments( &mut self, i: ParenthesizedGenericArguments, ) -> ParenthesizedGenericArguments
Available on crate features
derive
or full
only.fn fold_pat(&mut self, i: Pat) -> Pat
Available on crate feature
full
only.fn fold_pat_ident(&mut self, i: PatIdent) -> PatIdent
Available on crate feature
full
only.fn fold_pat_or(&mut self, i: PatOr) -> PatOr
Available on crate feature
full
only.fn fold_pat_paren(&mut self, i: PatParen) -> PatParen
Available on crate feature
full
only.fn fold_pat_reference(&mut self, i: PatReference) -> PatReference
Available on crate feature
full
only.fn fold_pat_rest(&mut self, i: PatRest) -> PatRest
Available on crate feature
full
only.fn fold_pat_slice(&mut self, i: PatSlice) -> PatSlice
Available on crate feature
full
only.fn fold_pat_struct(&mut self, i: PatStruct) -> PatStruct
Available on crate feature
full
only.fn fold_pat_tuple(&mut self, i: PatTuple) -> PatTuple
Available on crate feature
full
only.fn fold_pat_tuple_struct(&mut self, i: PatTupleStruct) -> PatTupleStruct
Available on crate feature
full
only.fn fold_pat_type(&mut self, i: PatType) -> PatType
Available on crate feature
full
only.fn fold_pat_wild(&mut self, i: PatWild) -> PatWild
Available on crate feature
full
only.fn fold_path(&mut self, i: Path) -> Path
Available on crate features
derive
or full
only.fn fold_path_arguments(&mut self, i: PathArguments) -> PathArguments
Available on crate features
derive
or full
only.fn fold_path_segment(&mut self, i: PathSegment) -> PathSegment
Available on crate features
derive
or full
only.fn fold_pointer_mutability(&mut self, i: PointerMutability) -> PointerMutability
Available on crate feature
full
only.fn fold_precise_capture(&mut self, i: PreciseCapture) -> PreciseCapture
Available on crate feature
full
only.fn fold_predicate_lifetime(&mut self, i: PredicateLifetime) -> PredicateLifetime
Available on crate features
derive
or full
only.fn fold_predicate_type(&mut self, i: PredicateType) -> PredicateType
Available on crate features
derive
or full
only.fn fold_qself(&mut self, i: QSelf) -> QSelf
Available on crate features
derive
or full
only.fn fold_range_limits(&mut self, i: RangeLimits) -> RangeLimits
Available on crate feature
full
only.fn fold_receiver(&mut self, i: Receiver) -> Receiver
Available on crate feature
full
only.fn fold_return_type(&mut self, i: ReturnType) -> ReturnType
Available on crate features
derive
or full
only.fn fold_signature(&mut self, i: Signature) -> Signature
Available on crate feature
full
only.fn fold_span(&mut self, i: Span) -> Span
fn fold_static_mutability(&mut self, i: StaticMutability) -> StaticMutability
Available on crate feature
full
only.fn fold_stmt(&mut self, i: Stmt) -> Stmt
Available on crate feature
full
only.fn fold_stmt_macro(&mut self, i: StmtMacro) -> StmtMacro
Available on crate feature
full
only.fn fold_trait_bound(&mut self, i: TraitBound) -> TraitBound
Available on crate features
derive
or full
only.fn fold_trait_bound_modifier( &mut self, i: TraitBoundModifier, ) -> TraitBoundModifier
Available on crate features
derive
or full
only.fn fold_trait_item(&mut self, i: TraitItem) -> TraitItem
Available on crate feature
full
only.fn fold_trait_item_const(&mut self, i: TraitItemConst) -> TraitItemConst
Available on crate feature
full
only.fn fold_trait_item_fn(&mut self, i: TraitItemFn) -> TraitItemFn
Available on crate feature
full
only.fn fold_trait_item_macro(&mut self, i: TraitItemMacro) -> TraitItemMacro
Available on crate feature
full
only.fn fold_trait_item_type(&mut self, i: TraitItemType) -> TraitItemType
Available on crate feature
full
only.fn fold_type(&mut self, i: Type) -> Type
Available on crate features
derive
or full
only.fn fold_type_array(&mut self, i: TypeArray) -> TypeArray
Available on crate features
derive
or full
only.fn fold_type_bare_fn(&mut self, i: TypeBareFn) -> TypeBareFn
Available on crate features
derive
or full
only.fn fold_type_group(&mut self, i: TypeGroup) -> TypeGroup
Available on crate features
derive
or full
only.fn fold_type_impl_trait(&mut self, i: TypeImplTrait) -> TypeImplTrait
Available on crate features
derive
or full
only.fn fold_type_infer(&mut self, i: TypeInfer) -> TypeInfer
Available on crate features
derive
or full
only.fn fold_type_macro(&mut self, i: TypeMacro) -> TypeMacro
Available on crate features
derive
or full
only.fn fold_type_never(&mut self, i: TypeNever) -> TypeNever
Available on crate features
derive
or full
only.fn fold_type_param(&mut self, i: TypeParam) -> TypeParam
Available on crate features
derive
or full
only.fn fold_type_param_bound(&mut self, i: TypeParamBound) -> TypeParamBound
Available on crate features
derive
or full
only.fn fold_type_paren(&mut self, i: TypeParen) -> TypeParen
Available on crate features
derive
or full
only.fn fold_type_path(&mut self, i: TypePath) -> TypePath
Available on crate features
derive
or full
only.fn fold_type_ptr(&mut self, i: TypePtr) -> TypePtr
Available on crate features
derive
or full
only.fn fold_type_reference(&mut self, i: TypeReference) -> TypeReference
Available on crate features
derive
or full
only.fn fold_type_slice(&mut self, i: TypeSlice) -> TypeSlice
Available on crate features
derive
or full
only.fn fold_type_trait_object(&mut self, i: TypeTraitObject) -> TypeTraitObject
Available on crate features
derive
or full
only.fn fold_type_tuple(&mut self, i: TypeTuple) -> TypeTuple
Available on crate features
derive
or full
only.fn fold_un_op(&mut self, i: UnOp) -> UnOp
Available on crate features
derive
or full
only.fn fold_use_glob(&mut self, i: UseGlob) -> UseGlob
Available on crate feature
full
only.fn fold_use_group(&mut self, i: UseGroup) -> UseGroup
Available on crate feature
full
only.fn fold_use_name(&mut self, i: UseName) -> UseName
Available on crate feature
full
only.fn fold_use_path(&mut self, i: UsePath) -> UsePath
Available on crate feature
full
only.fn fold_use_rename(&mut self, i: UseRename) -> UseRename
Available on crate feature
full
only.fn fold_use_tree(&mut self, i: UseTree) -> UseTree
Available on crate feature
full
only.fn fold_variadic(&mut self, i: Variadic) -> Variadic
Available on crate feature
full
only.fn fold_variant(&mut self, i: Variant) -> Variant
Available on crate features
derive
or full
only.fn fold_vis_restricted(&mut self, i: VisRestricted) -> VisRestricted
Available on crate features
derive
or full
only.fn fold_visibility(&mut self, i: Visibility) -> Visibility
Available on crate features
derive
or full
only.fn fold_where_clause(&mut self, i: WhereClause) -> WhereClause
Available on crate features
derive
or full
only.fn fold_where_predicate(&mut self, i: WherePredicate) -> WherePredicate
Available on crate features
derive
or full
only.