Struct aster::mac::MacBuilder [] [src]

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

A Builder for macro invocations.

Note that there are no commas added between args, as otherwise that macro invocations that could be expressed would be limited. You will need to add all required symbols with with_arg or with_argss.

Methods

impl MacBuilder

fn new() -> Self

impl<F> MacBuilder<F> where F: Invoke<Mac>

fn new_with_callback(callback: F) -> Self

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

fn path(self, path: Path) -> Self

fn build(self) -> F::Result

fn with_args<I, T>(self, iter: I) -> Self where I: IntoIterator<Item=T>, T: ToTokens

fn with_arg<T>(self, expr: T) -> Self where T: ToTokens

fn expr(self) -> ExprBuilder<Self>

Trait Implementations

impl<F> Invoke<P<Expr>> for MacBuilder<F> where F: Invoke<Mac>

type Result = Self

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