Struct syntax::ext::placeholders::PlaceholderExpander [−][src]
pub struct PlaceholderExpander<'a, 'b: 'a> { /* fields omitted */ }
Methods
impl<'a, 'b> PlaceholderExpander<'a, 'b>
[src]
impl<'a, 'b> PlaceholderExpander<'a, 'b>
pub fn new(cx: &'a mut ExtCtxt<'b>, monotonic: bool) -> Self
[src]
pub fn new(cx: &'a mut ExtCtxt<'b>, monotonic: bool) -> Self
pub fn add(&mut self, id: NodeId, expansion: Expansion, derives: Vec<Mark>)
[src]
pub fn add(&mut self, id: NodeId, expansion: Expansion, derives: Vec<Mark>)
Trait Implementations
impl<'a, 'b> Folder for PlaceholderExpander<'a, 'b>
[src]
impl<'a, 'b> Folder for PlaceholderExpander<'a, 'b>
fn fold_item(&mut self, item: P<Item>) -> SmallVector<P<Item>>
[src]
fn fold_item(&mut self, item: P<Item>) -> SmallVector<P<Item>>
fn fold_trait_item(&mut self, item: TraitItem) -> SmallVector<TraitItem>
[src]
fn fold_trait_item(&mut self, item: TraitItem) -> SmallVector<TraitItem>
fn fold_impl_item(&mut self, item: ImplItem) -> SmallVector<ImplItem>
[src]
fn fold_impl_item(&mut self, item: ImplItem) -> SmallVector<ImplItem>
fn fold_foreign_item(&mut self, item: ForeignItem) -> SmallVector<ForeignItem>
[src]
fn fold_foreign_item(&mut self, item: ForeignItem) -> SmallVector<ForeignItem>
fn fold_expr(&mut self, expr: P<Expr>) -> P<Expr>
[src]
fn fold_expr(&mut self, expr: P<Expr>) -> P<Expr>
fn fold_opt_expr(&mut self, expr: P<Expr>) -> Option<P<Expr>>
[src]
fn fold_opt_expr(&mut self, expr: P<Expr>) -> Option<P<Expr>>
fn fold_stmt(&mut self, stmt: Stmt) -> SmallVector<Stmt>
[src]
fn fold_stmt(&mut self, stmt: Stmt) -> SmallVector<Stmt>
fn fold_pat(&mut self, pat: P<Pat>) -> P<Pat>
[src]
fn fold_pat(&mut self, pat: P<Pat>) -> P<Pat>
fn fold_ty(&mut self, ty: P<Ty>) -> P<Ty>
[src]
fn fold_ty(&mut self, ty: P<Ty>) -> P<Ty>
fn fold_block(&mut self, block: P<Block>) -> P<Block>
[src]
fn fold_block(&mut self, block: P<Block>) -> P<Block>
fn fold_mod(&mut self, module: Mod) -> Mod
[src]
fn fold_mod(&mut self, module: Mod) -> Mod
fn fold_mac(&mut self, mac: Mac) -> Mac
[src]
fn fold_mac(&mut self, mac: Mac) -> Mac
fn fold_crate(&mut self, c: Crate) -> Crate
[src]
fn fold_crate(&mut self, c: Crate) -> Crate
fn fold_meta_items(&mut self, meta_items: Vec<MetaItem>) -> Vec<MetaItem>
[src]
fn fold_meta_items(&mut self, meta_items: Vec<MetaItem>) -> Vec<MetaItem>
fn fold_meta_list_item(&mut self, list_item: NestedMetaItem) -> NestedMetaItem
[src]
fn fold_meta_list_item(&mut self, list_item: NestedMetaItem) -> NestedMetaItem
fn fold_meta_item(&mut self, meta_item: MetaItem) -> MetaItem
[src]
fn fold_meta_item(&mut self, meta_item: MetaItem) -> MetaItem
fn fold_use_tree(&mut self, use_tree: UseTree) -> UseTree
[src]
fn fold_use_tree(&mut self, use_tree: UseTree) -> UseTree
fn fold_foreign_item_simple(&mut self, ni: ForeignItem) -> ForeignItem
[src]
fn fold_foreign_item_simple(&mut self, ni: ForeignItem) -> ForeignItem
fn fold_item_simple(&mut self, i: Item) -> Item
[src]
fn fold_item_simple(&mut self, i: Item) -> Item
fn fold_struct_field(&mut self, sf: StructField) -> StructField
[src]
fn fold_struct_field(&mut self, sf: StructField) -> StructField
fn fold_item_kind(&mut self, i: ItemKind) -> ItemKind
[src]
fn fold_item_kind(&mut self, i: ItemKind) -> ItemKind
fn fold_fn_decl(&mut self, d: P<FnDecl>) -> P<FnDecl>
[src]
fn fold_fn_decl(&mut self, d: P<FnDecl>) -> P<FnDecl>
fn fold_arm(&mut self, a: Arm) -> Arm
[src]
fn fold_arm(&mut self, a: Arm) -> Arm
fn fold_anon_const(&mut self, c: AnonConst) -> AnonConst
[src]
fn fold_anon_const(&mut self, c: AnonConst) -> AnonConst
fn fold_range_end(&mut self, re: RangeEnd) -> RangeEnd
[src]
fn fold_range_end(&mut self, re: RangeEnd) -> RangeEnd
fn fold_exprs(&mut self, es: Vec<P<Expr>>) -> Vec<P<Expr>>
[src]
fn fold_exprs(&mut self, es: Vec<P<Expr>>) -> Vec<P<Expr>>
fn fold_ty_binding(&mut self, t: TypeBinding) -> TypeBinding
[src]
fn fold_ty_binding(&mut self, t: TypeBinding) -> TypeBinding
fn fold_foreign_mod(&mut self, nm: ForeignMod) -> ForeignMod
[src]
fn fold_foreign_mod(&mut self, nm: ForeignMod) -> ForeignMod
fn fold_global_asm(&mut self, ga: P<GlobalAsm>) -> P<GlobalAsm>
[src]
fn fold_global_asm(&mut self, ga: P<GlobalAsm>) -> P<GlobalAsm>
fn fold_variant(&mut self, v: Variant) -> Variant
[src]
fn fold_variant(&mut self, v: Variant) -> Variant
fn fold_ident(&mut self, i: Ident) -> Ident
[src]
fn fold_ident(&mut self, i: Ident) -> Ident
fn fold_usize(&mut self, i: usize) -> usize
[src]
fn fold_usize(&mut self, i: usize) -> usize
fn fold_path(&mut self, p: Path) -> Path
[src]
fn fold_path(&mut self, p: Path) -> Path
fn fold_path_parameters(&mut self, p: PathParameters) -> PathParameters
[src]
fn fold_path_parameters(&mut self, p: PathParameters) -> PathParameters
fn fold_angle_bracketed_parameter_data(
&mut self,
p: AngleBracketedParameterData
) -> AngleBracketedParameterData
[src]
fn fold_angle_bracketed_parameter_data(
&mut self,
p: AngleBracketedParameterData
) -> AngleBracketedParameterData
fn fold_parenthesized_parameter_data(
&mut self,
p: ParenthesizedParameterData
) -> ParenthesizedParameterData
[src]
fn fold_parenthesized_parameter_data(
&mut self,
p: ParenthesizedParameterData
) -> ParenthesizedParameterData
fn fold_local(&mut self, l: P<Local>) -> P<Local>
[src]
fn fold_local(&mut self, l: P<Local>) -> P<Local>
fn fold_macro_def(&mut self, def: MacroDef) -> MacroDef
[src]
fn fold_macro_def(&mut self, def: MacroDef) -> MacroDef
fn fold_label(&mut self, label: Label) -> Label
[src]
fn fold_label(&mut self, label: Label) -> Label
fn fold_attribute(&mut self, at: Attribute) -> Option<Attribute>
[src]
fn fold_attribute(&mut self, at: Attribute) -> Option<Attribute>
fn fold_arg(&mut self, a: Arg) -> Arg
[src]
fn fold_arg(&mut self, a: Arg) -> Arg
fn fold_generics(&mut self, generics: Generics) -> Generics
[src]
fn fold_generics(&mut self, generics: Generics) -> Generics
fn fold_trait_ref(&mut self, p: TraitRef) -> TraitRef
[src]
fn fold_trait_ref(&mut self, p: TraitRef) -> TraitRef
fn fold_poly_trait_ref(&mut self, p: PolyTraitRef) -> PolyTraitRef
[src]
fn fold_poly_trait_ref(&mut self, p: PolyTraitRef) -> PolyTraitRef
fn fold_variant_data(&mut self, vdata: VariantData) -> VariantData
[src]
fn fold_variant_data(&mut self, vdata: VariantData) -> VariantData
fn fold_ty_param(&mut self, tp: TyParam) -> TyParam
[src]
fn fold_ty_param(&mut self, tp: TyParam) -> TyParam
fn fold_generic_param(&mut self, param: GenericParam) -> GenericParam
[src]
fn fold_generic_param(&mut self, param: GenericParam) -> GenericParam
fn fold_generic_params(
&mut self,
params: Vec<GenericParam>
) -> Vec<GenericParam>
[src]
fn fold_generic_params(
&mut self,
params: Vec<GenericParam>
) -> Vec<GenericParam>
fn fold_tt(&mut self, tt: TokenTree) -> TokenTree
[src]
fn fold_tt(&mut self, tt: TokenTree) -> TokenTree
fn fold_tts(&mut self, tts: TokenStream) -> TokenStream
[src]
fn fold_tts(&mut self, tts: TokenStream) -> TokenStream
fn fold_token(&mut self, t: Token) -> Token
[src]
fn fold_token(&mut self, t: Token) -> Token
fn fold_interpolated(&mut self, nt: Nonterminal) -> Nonterminal
[src]
fn fold_interpolated(&mut self, nt: Nonterminal) -> Nonterminal
fn fold_opt_bounds(&mut self, b: Option<TyParamBounds>) -> Option<TyParamBounds>
[src]
fn fold_opt_bounds(&mut self, b: Option<TyParamBounds>) -> Option<TyParamBounds>
fn fold_bounds(&mut self, b: TyParamBounds) -> TyParamBounds
[src]
fn fold_bounds(&mut self, b: TyParamBounds) -> TyParamBounds
fn fold_ty_param_bound(&mut self, tpb: TyParamBound) -> TyParamBound
[src]
fn fold_ty_param_bound(&mut self, tpb: TyParamBound) -> TyParamBound
fn fold_mt(&mut self, mt: MutTy) -> MutTy
[src]
fn fold_mt(&mut self, mt: MutTy) -> MutTy
fn fold_field(&mut self, field: Field) -> Field
[src]
fn fold_field(&mut self, field: Field) -> Field
fn fold_where_clause(&mut self, where_clause: WhereClause) -> WhereClause
[src]
fn fold_where_clause(&mut self, where_clause: WhereClause) -> WhereClause
fn fold_where_predicate(
&mut self,
where_predicate: WherePredicate
) -> WherePredicate
[src]
fn fold_where_predicate(
&mut self,
where_predicate: WherePredicate
) -> WherePredicate
fn fold_vis(&mut self, vis: Visibility) -> Visibility
[src]
fn fold_vis(&mut self, vis: Visibility) -> Visibility
fn new_id(&mut self, i: NodeId) -> NodeId
[src]
fn new_id(&mut self, i: NodeId) -> NodeId
fn new_span(&mut self, sp: Span) -> Span
[src]
fn new_span(&mut self, sp: Span) -> Span
Auto Trait Implementations
impl<'a, 'b> !Send for PlaceholderExpander<'a, 'b>
impl<'a, 'b> !Send for PlaceholderExpander<'a, 'b>
impl<'a, 'b> !Sync for PlaceholderExpander<'a, 'b>
impl<'a, 'b> !Sync for PlaceholderExpander<'a, 'b>