Struct aster::block::BlockBuilder [] [src]

pub struct BlockBuilder<F = Identity> {
    // some fields omitted
}

Methods

impl BlockBuilder

fn new() -> Self

impl<F> BlockBuilder<F> where F: Invoke<P<Block>>

fn new_with_callback(callback: F) -> Self

fn span(self, span: Span) -> Self

fn unsafe_(self) -> Self

fn with_stmts<I>(self, iter: I) -> Self where I: IntoIterator<Item=P<Stmt>>

fn with_stmt(self, stmt: P<Stmt>) -> Self

fn stmt(self) -> StmtBuilder<Self>

fn build_expr(self, expr: P<Expr>) -> F::Result

fn expr(self) -> ExprBuilder<Self>

fn build(self) -> F::Result

Trait Implementations

impl<F> Invoke<P<Stmt>> for BlockBuilder<F> where F: Invoke<P<Block>>

type Result = Self

fn invoke(self, stmt: P<Stmt>) -> Self

impl<F> Invoke<P<Expr>> for BlockBuilder<F> where F: Invoke<P<Block>>

type Result = F::Result

fn invoke(self, expr: P<Expr>) -> F::Result