[][src]Module c2rust_refactor::ast_manip::fn_edit

Helpers for rewriting all fn itemlikes, regardless of item kind.

Structs

FnLike

Generic representation of a fn.

Enums

FnKind

Enum indicating which kind of itemlike a fn is.

Functions

flat_map_fns

Similar to mut_visit_fns, but allows transforming each FnLike into a sequence of zero or more FnLikes.

mut_visit_fns

Fold over all item-like function definitions, including ItemKind::Fn, ImplItemKind::Method, TraitItemKind::Method, and ForeignItemKind::Fn.

visit_fns

Visit all item-like function definitions, including ItemKind::Fn, ImplItemKind::Method, TraitItemKind::Method, and ForeignItemKind::Fn.