Struct aster::stmt::StmtBuilder
[−]
[src]
pub struct StmtBuilder<F = Identity> { // some fields omitted }
pub struct StmtBuilder<F = Identity> { // some fields omitted }
impl StmtBuilder
[src]fn new() -> StmtBuilder
impl<F> StmtBuilder<F> where F: Invoke<Stmt>
[src]fn with_callback(callback: F) -> Self
fn build(self, stmt: Stmt) -> F::Result
fn span(self, span: Span) -> Self
fn build_stmt_kind(self, stmt_: StmtKind) -> F::Result
fn build_let(self, pat: P<Pat>, ty: Option<P<Ty>>, init: Option<P<Expr>>) -> F::Result
fn let_(self) -> PatBuilder<Self>
fn let_id<I>(self, id: I) -> ExprBuilder<StmtLetIdBuilder<F>> where I: ToIdent
fn build_expr(self, expr: P<Expr>) -> F::Result
fn expr(self) -> ExprBuilder<StmtExprBuilder<F>>
fn semi(self) -> ExprBuilder<StmtSemiBuilder<F>>
fn build_item(self, item: P<Item>) -> F::Result
fn item(self) -> ItemBuilder<StmtItemBuilder<F>>
impl<F> Invoke<P<Pat>> for StmtBuilder<F> where F: Invoke<Stmt>
[src]type Result = StmtLetBuilder<F>
fn invoke(self, pat: P<Pat>) -> StmtLetBuilder<F>