Struct aster::fn_decl::FnDeclBuilder [] [src]

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

Methods

impl FnDeclBuilder

fn new() -> FnDeclBuilder

impl<F> FnDeclBuilder<F> where F: Invoke<P<FnDecl>>

fn new_with_callback(callback: F) -> Self

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

fn variadic(self) -> Self

fn with_arg(self, arg: Arg) -> Self

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

fn arg<I>(self, id: I) -> ArgBuilder<Self> where I: ToIdent

fn no_return(self) -> F::Result

fn default_return(self) -> F::Result

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

fn return_(self) -> TyBuilder<Self>

fn build(self, output: FunctionRetTy) -> F::Result

Trait Implementations

impl<F> Invoke<Arg> for FnDeclBuilder<F> where F: Invoke<P<FnDecl>>

type Result = Self

fn invoke(self, arg: Arg) -> Self

impl<F> Invoke<P<Ty>> for FnDeclBuilder<F> where F: Invoke<P<FnDecl>>

type Result = F::Result

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