Struct aster::constant::ConstBuilder [] [src]

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

Methods

impl ConstBuilder

fn new() -> Self

impl<F> ConstBuilder<F> where F: Invoke<Const>

fn with_callback(callback: F) -> Self where F: Invoke<Const>

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

fn with_expr(self, expr: P<Expr>) -> Self

fn expr(self) -> ExprBuilder<Self>

fn ty(self) -> TyBuilder<Self>

fn build(self, ty: P<Ty>) -> F::Result

Trait Implementations

impl<F> Invoke<P<Expr>> for ConstBuilder<F> where F: Invoke<Const>

type Result = Self

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

impl<F> Invoke<P<Ty>> for ConstBuilder<F> where F: Invoke<Const>

type Result = F::Result

fn invoke(self, ty: P<Ty>) -> F::Result