Struct aster::fn_decl::FnDeclBuilder
[−]
[src]
pub struct FnDeclBuilder<F = Identity> { // some fields omitted }
pub struct FnDeclBuilder<F = Identity> { // some fields omitted }
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
impl<F> Invoke<Arg> for FnDeclBuilder<F> where F: Invoke<P<FnDecl>>
impl<F> Invoke<P<Ty>> for FnDeclBuilder<F> where F: Invoke<P<FnDecl>>
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
)