Struct syntax::ast_map::Ctx[src]
pub struct Ctx<'a, F> {
// some fields omitted
}pub struct Ctx<'a, F> {
// some fields omitted
}impl<'a, F: FoldOps> Folder for Ctx<'a, F>fn new_id(&mut self, id: NodeId) -> NodeIdfn new_span(&mut self, span: Span) -> Spanfn fold_item(&mut self, i: Gc<Item>) -> SmallVector<Gc<Item>>fn fold_pat(&mut self, pat: Gc<Pat>) -> Gc<Pat>fn fold_expr(&mut self, expr: Gc<Expr>) -> Gc<Expr>fn fold_stmt(&mut self, stmt: &Stmt) -> SmallVector<Gc<Stmt>>fn fold_type_method(&mut self, m: &TypeMethod) -> TypeMethodfn fold_method(&mut self, m: Gc<Method>) -> Gc<Method>fn fold_fn_decl(&mut self, decl: &FnDecl) -> P<FnDecl>fn fold_block(&mut self, block: P<Block>) -> P<Block>fn fold_lifetime(&mut self, lifetime: &Lifetime) -> Lifetimefn fold_crate(&mut self, c: Crate) -> Cratefn fold_meta_items(&mut self, meta_items: &[Gc<MetaItem>]) -> Vec<Gc<MetaItem>>fn fold_view_path(&mut self, view_path: Gc<ViewPath>) -> Gc<ViewPath>fn fold_view_item(&mut self, vi: &ViewItem) -> ViewItemfn fold_foreign_item(&mut self, ni: Gc<ForeignItem>) -> Gc<ForeignItem>fn fold_struct_field(&mut self, sf: &StructField) -> StructFieldfn fold_item_underscore(&mut self, i: &Item_) -> Item_fn fold_arm(&mut self, a: &Arm) -> Armfn fold_decl(&mut self, d: Gc<Decl>) -> SmallVector<Gc<Decl>>fn fold_ty(&mut self, t: P<Ty>) -> P<Ty>fn fold_mod(&mut self, m: &Mod) -> Modfn fold_foreign_mod(&mut self, nm: &ForeignMod) -> ForeignModfn fold_variant(&mut self, v: &Variant) -> P<Variant>fn fold_ident(&mut self, i: Ident) -> Identfn fold_path(&mut self, p: &Path) -> Pathfn fold_local(&mut self, l: Gc<Local>) -> Gc<Local>fn fold_mac(&mut self, macro: &Mac) -> Macfn map_exprs(&self, f: |Gc<Expr>| -> Gc<Expr>, es: &[Gc<Expr>]) -> Vec<Gc<Expr>>fn fold_explicit_self(&mut self, es: &ExplicitSelf) -> ExplicitSelffn fold_explicit_self_(&mut self, es: &ExplicitSelf_) -> ExplicitSelf_
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct (or str), enum,
trait, typedef (or
tdef).