Struct aster::stmt::StmtBuilder
[−]
[src]
pub struct StmtBuilder<F = Identity> {
// some fields omitted
}pub struct StmtBuilder<F = Identity> {
// some fields omitted
}impl StmtBuilderfn new() -> StmtBuilderimpl<F> StmtBuilder<F> where F: Invoke<P<Stmt>>fn new_with_callback(callback: F) -> Selffn build(self, stmt: P<Stmt>) -> F::Resultfn span(self, span: Span) -> Selffn build_stmt_(self, stmt_: Stmt_) -> F::Resultfn build_let(self, pat: P<Pat>, ty: Option<P<Ty>>, init: Option<P<Expr>>) -> F::Resultfn let_(self) -> PatBuilder<Self>fn let_id<I>(self, id: I) -> ExprBuilder<StmtLetIdBuilder<F>> where I: ToIdentfn build_expr(self, expr: P<Expr>) -> F::Resultfn expr(self) -> ExprBuilder<StmtExprBuilder<F>>fn semi(self) -> ExprBuilder<StmtSemiBuilder<F>>fn build_item(self, item: P<Item>) -> F::Resultfn item(self) -> ItemBuilder<StmtItemBuilder<F>>impl<F> Invoke<P<Pat>> for StmtBuilder<F> where F: Invoke<P<Stmt>>type Result = StmtLetBuilder<F>fn invoke(self, pat: P<Pat>) -> StmtLetBuilder<F>
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, enum,
trait, typedef (or
tdef).
Search functions by type signature (e.g.
vec -> usize)