Struct aster::stmt::StmtBuilder
[−]
[src]
pub struct StmtBuilder<F = Identity> { // some fields omitted }
pub struct StmtBuilder<F = Identity> { // some fields omitted }
impl StmtBuilder
fn new() -> StmtBuilder
impl<F> StmtBuilder<F> where F: Invoke<P<Stmt>>
fn new_with_callback(callback: F) -> Self
fn build(self, stmt: P<Stmt>) -> F::Result
fn span(self, span: Span) -> Self
fn build_stmt_(self, stmt_: Stmt_) -> 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<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
)